Fix barrier and invalidation of the fill_buffer readback
authorDzmitry Malyshau <dmalyshau@mozilla.com>
Mon, 7 May 2018 20:24:07 +0000 (16:24 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 22 May 2018 09:32:49 +0000 (05:32 -0400)
commit4fe1285d0c3454f493d83e9093b5e3707d2c5307
treed68706beedbedf725f3f6cb6f1309a48e1ee1bbc
parentc83a8635094bda570fafa63e48667a45d0019346
Fix barrier and invalidation of the fill_buffer readback

The old code had a barrier waiting for a different memory region that is being
filled, and same goes for the memory invalidation call that follows.
It resulted in the range of size=0 being requeste for invalidation, which
doesn't include actual bytes filled by cmdFillBuffer that is being tested.

Affects:
dEQP-VK.api.fill_and_update_buffer.*

Change-Id: Id2d68dc65145b42ecb0f966c70d57db81e9acb4a
Components: Vulkan
external/vulkancts/modules/vulkan/api/vktApiFillBufferTests.cpp