diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-10-05 12:12:33 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-10-05 13:04:54 -0700 |
commit | 28ab2570c8994993acf199e6c728c0f316bf253a (patch) | |
tree | 7a0da29636c81e374ff9d2fb08e32c384283e744 | |
parent | a41cfbbf2bd2697f4ecf3ca99f2b54fb2573d594 (diff) |
nir: Use the correct infos structure for copying atomic sources
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
Cc: "12.0" <mesa-dev@lists.freedestkop.org>
-rw-r--r-- | src/compiler/nir/nir_lower_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index d469b6180f..a3b1423899 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); } |