nir/intrinsics: Set the correct num_indices for load_output
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Sep 2017 23:22:00 +0000 (16:22 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 25 Oct 2017 19:36:20 +0000 (12:36 -0700)
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/compiler/nir/nir_intrinsics.h

index 0de7080bfaf1f436ef8b438e6f7911afc26fd02b..cefd18be904c44ffc4bf3d7ed6650e0235b5b8c3 100644 (file)
@@ -434,7 +434,7 @@ INTRINSIC(load_interpolated_input, 2, ARR(2, 1), true, 0, 0,
 /* src[] = { buffer_index, offset }. No const_index */
 LOAD(ssbo, 2, 0, xx, xx, xx, NIR_INTRINSIC_CAN_ELIMINATE)
 /* src[] = { offset }. const_index[] = { base, component } */
-LOAD(output, 1, 1, BASE, COMPONENT, xx, NIR_INTRINSIC_CAN_ELIMINATE)
+LOAD(output, 1, 2, BASE, COMPONENT, xx, NIR_INTRINSIC_CAN_ELIMINATE)
 /* src[] = { vertex, offset }. const_index[] = { base, component } */
 LOAD(per_vertex_output, 2, 1, BASE, COMPONENT, xx, NIR_INTRINSIC_CAN_ELIMINATE)
 /* src[] = { offset }. const_index[] = { base } */