Commit b1d81fe2 by Frank Henigman Committed by Commit Bot

Vulkan: flush StreamingBuffer before unmap.

Unmap does not flush, so we need to do it explicitly. BUG=angleproject:2436 Change-Id: Id102825b1329d97965f07b97c227214fa7524a0e Reviewed-on: https://chromium-review.googlesource.com/980927Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarLuc Ferron <lucferron@chromium.org> Commit-Queue: Frank Henigman <fjhenigman@chromium.org>
parent 6ea1b416
...@@ -69,6 +69,7 @@ vk::Error StreamingBuffer::allocate(ContextVk *context, ...@@ -69,6 +69,7 @@ vk::Error StreamingBuffer::allocate(ContextVk *context,
if (mMappedMemory) if (mMappedMemory)
{ {
ANGLE_TRY(flush(context));
mMemory.unmap(device); mMemory.unmap(device);
mMappedMemory = nullptr; mMappedMemory = nullptr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment