diff options
author | Jordan Justen <[email protected]> | 2016-04-12 10:15:38 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2016-05-17 13:04:03 -0700 |
commit | aa41de080dad1996877fe7faaa8fed5e63d2f622 (patch) | |
tree | 967331bed9c014430892de2a86d52a3fd3e7b636 /src/intel | |
parent | 8ee31828c656d456bfe067cfae512b1fbbd0bbd6 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/gen7_cmd_buffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |