From: Alyssa Rosenzweig Date: Mon, 1 Jul 2019 22:28:37 +0000 (-0700) Subject: panfrost/midgard: Use nir_dest_num_components X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f42e5be9105c0a7a6358e51ca2af6fd5a31c6e7e;p=mesa.git panfrost/midgard: Use nir_dest_num_components Signed-off-by: Alyssa Rosenzweig --- 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