glsl: Use ir_var_temporary for compiler generated temporaries

These few places were using ir_var_auto for seemingly no reason.  The
names were not added to the symbol table.

No change Valgrind massif results for a trimmed apitrace of dota2.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Ian Romanick
2014-07-09 16:57:03 -07:00
parent 04e1357d97
commit eaa0c74142
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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++) {