From: Jordan Justen Date: Tue, 12 Apr 2016 17:15:38 +0000 (-0700) Subject: anv/gen7: Add memory barrier to vkCmdWaitEvents call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa41de080dad1996877fe7faaa8fed5e63d2f622;p=mesa.git anv/gen7: Add memory barrier to vkCmdWaitEvents call We also have this barrier call for gen8 vkCmdWaitEvents. We don't implement waiting on events for gen7 yet, but this barrier at least helps to not regress CTS cases when data caching is enabled. Without this, the tests would intermittently report a failure when the data cache was enabled. Signed-off-by: Jordan Justen Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/gen7_cmd_buffer.c b/src/intel/vulkan/gen7_cmd_buffer.c index 62d9f4644a1..32bae027725 100644 --- a/src/intel/vulkan/gen7_cmd_buffer.c +++ b/src/intel/vulkan/gen7_cmd_buffer.c @@ -546,4 +546,10 @@ void genX(CmdWaitEvents)( const VkImageMemoryBarrier* pImageMemoryBarriers) { stub(); + + genX(CmdPipelineBarrier)(commandBuffer, srcStageMask, destStageMask, + false, /* byRegion */ + memoryBarrierCount, pMemoryBarriers, + bufferMemoryBarrierCount, pBufferMemoryBarriers, + imageMemoryBarrierCount, pImageMemoryBarriers); }