diff options
Diffstat (limited to 'src/compiler/nir/nir_opt_copy_propagate.c')
-rw-r--r-- | src/compiler/nir/nir_opt_copy_propagate.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/compiler/nir/nir_opt_copy_propagate.c b/src/compiler/nir/nir_opt_copy_propagate.c index c4001fa73f5..3cd476a1b97 100644 --- a/src/compiler/nir/nir_opt_copy_propagate.c +++ b/src/compiler/nir/nir_opt_copy_propagate.c @@ -257,10 +257,7 @@ copy_prop_instr(nir_instr *instr) nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr); for (unsigned i = 0; i < nir_intrinsic_infos[intrin->intrinsic].num_srcs; i++) { - unsigned num_components = - nir_intrinsic_infos[intrin->intrinsic].src_components[i]; - if (!num_components) - num_components = intrin->num_components; + unsigned num_components = nir_intrinsic_src_components(intrin, i); while (copy_prop_src(&intrin->src[i], instr, NULL, num_components)) progress = true; |