diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-01 15:28:37 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-10 06:12:03 -0700 |
commit | f42e5be9105c0a7a6358e51ca2af6fd5a31c6e7e (patch) | |
tree | 6b657e932371c14953a325e22075892984063514 | |
parent | 4df80cab40374effc40141b96bf9aa899ba554a1 (diff) |
panfrost/midgard: Use nir_dest_num_components
Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r-- | src/gallium/drivers/panfrost/midgard/midgard_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index 109ed010d38..cb3b4689c82 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c @@ -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 |