mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
panfrost: Fix incorrect condition in assert
Since commit8bb46de0, 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:
parent
295768c13e
commit
7bc1c456cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue