fix directUpdate buffer pointer issue.

inside mapWithOffset already add the mBufferOffset

Signed-off-by: Hailin Zhang<hailinzhang@google.com>

Bug: b/207714894
Change-Id: Ia400bccbef1abc756cd8155e93a775338a30e8b9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3325025
Reviewed-by: Lingfeng Yang <lfy@google.com>
Reviewed-by: Charlie Lao <cclao@google.com>
Commit-Queue: Hailin Zhang <hailinzhang@google.com>
This commit is contained in:
Hailin Zhang 2021-12-08 16:44:56 -08:00 коммит произвёл Angle LUCI CQ
Родитель 663831aa67
Коммит 3be551d7c2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1046,8 +1046,8 @@ angle::Result BufferVk::acquireAndUpdate(ContextVk *contextVk,
ANGLE_TRY(
src->mapWithOffset(contextVk, &mapPointer, static_cast<size_t>(mBufferOffset)));
ASSERT(mapPointer);
srcMapPtrBeforeSubData = mapPointer + mBufferOffset;
srcMapPtrAfterSubData = mapPointer + mBufferOffset + offsetAfterSubdata;
srcMapPtrBeforeSubData = mapPointer;
srcMapPtrAfterSubData = mapPointer + offsetAfterSubdata;
}
}