aco/wave32: Use wave_size for barrier intrinsic.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
committed by
Daniel Schürmann
parent
b8f2edb452
commit
ed815d503e
@@ -5631,7 +5631,7 @@ void visit_intrinsic(isel_context *ctx, nir_intrinsic_instr *instr)
|
||||
case nir_intrinsic_barrier: {
|
||||
unsigned* bsize = ctx->program->info->cs.block_size;
|
||||
unsigned workgroup_size = bsize[0] * bsize[1] * bsize[2];
|
||||
if (workgroup_size > 64)
|
||||
if (workgroup_size > ctx->program->wave_size)
|
||||
bld.sopp(aco_opcode::s_barrier);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user