diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2014-07-08 16:57:33 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2014-09-30 13:34:42 -0700 |
commit | 7625babfae6c5e86ab349c1a081816fbbcc48d17 (patch) | |
tree | c7e04493ac25f718bbebab5f62d206c9841ab5c6 /src/glsl/ir_validate.cpp | |
parent | 0e654ab1b9a20671f755cbe71fe51ff6ec849459 (diff) | |
download | external_mesa3d-7625babfae6c5e86ab349c1a081816fbbcc48d17.zip external_mesa3d-7625babfae6c5e86ab349c1a081816fbbcc48d17.tar.gz external_mesa3d-7625babfae6c5e86ab349c1a081816fbbcc48d17.tar.bz2 |
glsl: Add the possibility for ir_variable to have a non-ralloced name
Specifically, ir_var_temporary variables constructed with a NULL name
will all have the name "compiler_temp" in static storage.
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>
Diffstat (limited to 'src/glsl/ir_validate.cpp')
-rw-r--r-- | src/glsl/ir_validate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp index 5159862..5a6f8bb 100644 --- a/src/glsl/ir_validate.cpp +++ b/src/glsl/ir_validate.cpp @@ -654,7 +654,7 @@ ir_validate::visit(ir_variable *ir) * in the ir_dereference_variable handler to ensure that a variable is * declared before it is dereferenced. */ - if (ir->name) + if (ir->name && ir->is_name_ralloced()) assert(ralloc_parent(ir->name) == ir); hash_table_insert(ht, ir, ir); |