aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/lower_offset_array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/lower_offset_array.cpp')
-rw-r--r--mesalib/src/glsl/lower_offset_array.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesalib/src/glsl/lower_offset_array.cpp b/mesalib/src/glsl/lower_offset_array.cpp
index 0c235eda3..5b48526db 100644
--- a/mesalib/src/glsl/lower_offset_array.cpp
+++ b/mesalib/src/glsl/lower_offset_array.cpp
@@ -63,7 +63,8 @@ brw_lower_offset_array_visitor::handle_rvalue(ir_rvalue **rv)
void *mem_ctx = ralloc_parent(ir);
- ir_variable *var = new (mem_ctx) ir_variable(ir->type, "result", ir_var_auto);
+ ir_variable *var =
+ new (mem_ctx) ir_variable(ir->type, "result", ir_var_temporary);
base_ir->insert_before(var);
for (int i = 0; i < 4; i++) {