diff options
author | Ian Romanick <[email protected]> | 2014-07-09 16:57:03 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-09-30 13:34:43 -0700 |
commit | eaa0c7414285ff9d087a961e0d608538b5febba0 (patch) | |
tree | 6ca8e741dbc0a03e283e0720b8998adc582a1b63 /src/glsl/lower_offset_array.cpp | |
parent | 04e1357d97ae2d99dfbf0b6e91feee54eecd6eb5 (diff) |
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 <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/lower_offset_array.cpp')
-rw-r--r-- | src/glsl/lower_offset_array.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/lower_offset_array.cpp b/src/glsl/lower_offset_array.cpp index 0c235eda395..5b48526db1d 100644 --- a/src/glsl/lower_offset_array.cpp +++ b/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++) { |