diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index a3d09fdfe52..933ef90cba7 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -4618,7 +4618,7 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler, ir = so->ir = ctx->ir; - if (so->type == MESA_SHADER_COMPUTE) { + if (gl_shader_stage_is_compute(so->type)) { so->local_size[0] = ctx->s->info.workgroup_size[0]; so->local_size[1] = ctx->s->info.workgroup_size[1]; so->local_size[2] = ctx->s->info.workgroup_size[2];