summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2016-04-12 10:15:38 -0700
committerJordan Justen <jordan.l.justen@intel.com>2016-05-17 13:04:03 -0700
commitaa41de080dad1996877fe7faaa8fed5e63d2f622 (patch)
tree967331bed9c014430892de2a86d52a3fd3e7b636 /src/intel
parent8ee31828c656d456bfe067cfae512b1fbbd0bbd6 (diff)
downloadexternal_mesa3d-aa41de080dad1996877fe7faaa8fed5e63d2f622.zip
external_mesa3d-aa41de080dad1996877fe7faaa8fed5e63d2f622.tar.gz
external_mesa3d-aa41de080dad1996877fe7faaa8fed5e63d2f622.tar.bz2
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 <jordan.l.justen@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/gen7_cmd_buffer.c6
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 62d9f46..32bae02 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);
}