Add sync in vulkan when writing to linear texture
authoregdaniel <egdaniel@google.com>
Tue, 3 May 2016 14:25:56 +0000 (07:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 3 May 2016 14:25:56 +0000 (07:25 -0700)
commitbdf8811b3126ab08ccff08b5e647b80cae5bd087
tree72add527452f078cfdec55dcfdbf270d56159e51
parent89d09a1f70280cd0317d8a8d4e8973e5fa43182c
Add sync in vulkan when writing to linear texture

Since mapping memory of linear textures happens in real time and not via
a command buffer, we need to flush all work that access the texture
before uploading new data to it. Even if the texture is already in the
correct layout, General, we still need to make sure all work has been
finished.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1943333002

Review-Url: https://codereview.chromium.org/1943333002
src/gpu/vk/GrVkGpu.cpp