From 347e82c718001668f9b29e729ce2d3ae3b9fd7e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Thu, 19 Mar 2026 07:11:26 -0700 Subject: [PATCH] anv: Always have a valid Resource barrier::Wait stage set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simulator hangs if a resource barrier has wait stage = None, HW seens to don't care but something bad could be happning internaly. So here making sure Wait stage is set to TOP when it is None. Simulator hangs if a resource barrier has wait stage = None. The HW seems to ignore it, but something bad could be happening internally. So here I'm making sure the wait stage is set to TOP when it is None. Reviewed-by: Tapani Pälli Signed-off-by: José Roberto de Souza Part-of: --- src/intel/vulkan/genX_cmd_buffer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 2a80555be7c..11db28c0005 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -1978,6 +1978,9 @@ emit_resource_barrier(struct anv_batch *batch, } #endif + if (wait_stages == RESOURCE_BARRIER_STAGE_NONE) + wait_stages = RESOURCE_BARRIER_STAGE_TOP; + if (bits & ANV_PIPE_RT_BTI_CHANGE) { /* We used to deal with RT BTI changes with a PIPE_CONTROL with the * following flags: