summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2015-09-01 11:32:29 +0200
committerIago Toral Quiroga <[email protected]>2015-09-08 09:06:34 +0200
commit205ff843ffa12f461c5307903c200baa1d3c87c0 (patch)
tree71010079a65230be6e2ae5e2d003c55c7e95315f
parent87073c69f3e253044bc235f34917aaa89041a63c (diff)
nir: UBO loads no longer use const_index[1]
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 <[email protected]>
-rw-r--r--src/glsl/nir/glsl_to_nir.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp
index 5fb4ee25c40..0712908eee8 100644
--- a/src/glsl/nir/glsl_to_nir.cpp
+++ b/src/glsl/nir/glsl_to_nir.cpp
@@ -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]);