panfrost: Fix incorrect condition in assert

Since commit 8bb46de0, the correct way to check for a compute shader is
with `gl_shader_stage_is_compute()`.

Fixes: d2838f3c ("pan/bi: handle barriers with SUBGROUP scope")

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: John Anthony <john.anthony@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35957>
This commit is contained in:
Gorazd Sumkovski 2025-07-04 14:26:02 +01:00 committed by Marge Bot
parent 295768c13e
commit 7bc1c456cb

View file

@ -2104,7 +2104,7 @@ bi_emit_intrinsic(bi_builder *b, nir_intrinsic_instr *instr)
break;
case SCOPE_WORKGROUP:
assert(b->shader->stage == MESA_SHADER_COMPUTE);
assert(gl_shader_stage_is_compute(b->shader->stage));
bi_barrier(b);
/*
* Blob doesn't seem to do anything for memory barriers, so no need to