mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
panfrost/midgard: Use nir_dest_num_components
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
4df80cab40
commit
f42e5be910
1 changed files with 1 additions and 1 deletions
|
|
@ -732,7 +732,7 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr)
|
|||
bool is_ssa = instr->dest.dest.is_ssa;
|
||||
|
||||
unsigned dest = nir_dest_index(ctx, &instr->dest.dest);
|
||||
unsigned nr_components = is_ssa ? instr->dest.dest.ssa.num_components : instr->dest.dest.reg.reg->num_components;
|
||||
unsigned nr_components = nir_dest_num_components(instr->dest.dest);
|
||||
unsigned nr_inputs = nir_op_infos[instr->op].num_inputs;
|
||||
|
||||
/* Most Midgard ALU ops have a 1:1 correspondance to NIR ops; these are
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue