mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 08:30:10 +01:00
aco: Make unused workgroup id's 0
It shouldn't matter, but the 1 was leftover from when it was handled together with workgroup_size and num_work_groups. Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
parent
bb78f9b4e4
commit
01eb6ef870
1 changed files with 3 additions and 3 deletions
|
|
@ -5530,9 +5530,9 @@ void visit_intrinsic(isel_context *ctx, nir_intrinsic_instr *instr)
|
|||
Temp dst = get_ssa_temp(ctx, &instr->dest.ssa);
|
||||
struct ac_arg *args = ctx->args->ac.workgroup_ids;
|
||||
bld.pseudo(aco_opcode::p_create_vector, Definition(dst),
|
||||
args[0].used ? Operand(get_arg(ctx, args[0])) : Operand(1u),
|
||||
args[1].used ? Operand(get_arg(ctx, args[1])) : Operand(1u),
|
||||
args[2].used ? Operand(get_arg(ctx, args[2])) : Operand(1u));
|
||||
args[0].used ? Operand(get_arg(ctx, args[0])) : Operand(0u),
|
||||
args[1].used ? Operand(get_arg(ctx, args[1])) : Operand(0u),
|
||||
args[2].used ? Operand(get_arg(ctx, args[2])) : Operand(0u));
|
||||
emit_split_vector(ctx, dst, 3);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue