From 7bc1c456cb43c7f5234e57371c9dc99d50c4ccd6 Mon Sep 17 00:00:00 2001 From: Gorazd Sumkovski Date: Fri, 4 Jul 2025 14:26:02 +0100 Subject: [PATCH] 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 Reviewed-by: John Anthony Part-of: --- src/panfrost/compiler/bifrost_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/compiler/bifrost_compile.c b/src/panfrost/compiler/bifrost_compile.c index 2de6a9bbdd0..fefbbe526c6 100644 --- a/src/panfrost/compiler/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost_compile.c @@ -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