summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-08-23 17:09:09 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-08-23 18:34:07 +0200
commita1a628c7a98a44fb406ab604ca88206be354b816 (patch)
tree6c3236710288bba4e9272504e66b391d72964508
parent939fef0f5f3d3fdec3e8fa20399d1a87c67f9d81 (diff)
st/glsl_to_tgsi: ir_load_ubo always has a second index
-rw-r--r--src/mesa/state_tracker/st_glsl_to_tgsi.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 9f021962e4..f2aae4f518 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -2186,14 +2186,13 @@ glsl_to_tgsi_visitor::visit_expression(ir_expression* ir, st_src_reg *op)
if (const_uniform_block) {
/* Constant constant buffer */
cbuf.reladdr2 = NULL;
- cbuf.has_index2 = true;
}
else {
/* Relative/variable constant buffer */
cbuf.reladdr2 = ralloc(mem_ctx, st_src_reg);
memcpy(cbuf.reladdr2, &op[0], sizeof(st_src_reg));
- cbuf.has_index2 = true;
}
+ cbuf.has_index2 = true;
cbuf.swizzle = swizzle_for_size(ir->type->vector_elements);
if (glsl_base_type_is_64bit(cbuf.type))