anv: Always have a valid Resource barrier::Wait stage set

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 <tapani.palli@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40516>
This commit is contained in:
José Roberto de Souza 2026-03-19 07:11:26 -07:00 committed by Marge Bot
parent 2e2d0f623e
commit 347e82c718

View file

@ -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: