nir: UBO loads no longer use const_index[1]
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 1 Sep 2015 09:32:29 +0000 (11:32 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 8 Sep 2015 07:06:34 +0000 (09:06 +0200)
Commit 2126c68e5cba killed the array elements parameter on load/store
intrinsics that was stored in const_index[1]. It looks like that
patch missed to remove this assignment in the UBO path.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/glsl_to_nir.cpp

index 5fb4ee25c4057e5587fbc22249b28ff75bcb247a..0712908eee8f2a748e19364be200d8bb05dcf9c4 100644 (file)
@@ -1001,7 +1001,6 @@ nir_visitor::visit(ir_expression *ir)
       nir_intrinsic_instr *load = nir_intrinsic_instr_create(this->shader, op);
       load->num_components = ir->type->vector_elements;
       load->const_index[0] = const_index ? const_index->value.u[0] : 0; /* base offset */
-      load->const_index[1] = 1; /* number of vec4's */
       load->src[0] = evaluate_rvalue(ir->operands[0]);
       if (!const_index)
          load->src[1] = evaluate_rvalue(ir->operands[1]);