From: Jason Ekstrand Date: Wed, 5 Oct 2016 19:12:33 +0000 (-0700) Subject: nir: Use the correct infos structure for copying atomic sources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28ab2570c8994993acf199e6c728c0f316bf253a;p=mesa.git nir: Use the correct infos structure for copying atomic sources Signed-off-by: Jason Ekstrand Reviewed-by: Connor Abbott Tested-by: Mark Janes Cc: "12.0" --- diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index d469b6180f8..a3b14238993 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -327,7 +327,7 @@ lower_atomic(nir_intrinsic_instr *intrin, struct lower_io_state *state, nir_intrinsic_set_base(atomic, var->data.driver_location); atomic->src[0] = nir_src_for_ssa(offset); - for (unsigned i = 0; i < nir_op_infos[intrin->intrinsic].num_inputs; i++) { + for (unsigned i = 0; i < nir_intrinsic_infos[intrin->intrinsic].num_srcs; i++) { nir_src_copy(&atomic->src[i+1], &intrin->src[i], atomic); }