diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2014-05-14 19:47:28 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2014-09-30 13:34:42 -0700 |
commit | 5aa8d8194c4975876276a9c57cdd672978a491ad (patch) | |
tree | 700e5fdf988b1b1e0125c0ab2cc19da39e527db0 /src/glsl/ir_validate.cpp | |
parent | 21df0169028d600b17ab73795da2838e92ba9038 (diff) | |
download | external_mesa3d-5aa8d8194c4975876276a9c57cdd672978a491ad.zip external_mesa3d-5aa8d8194c4975876276a9c57cdd672978a491ad.tar.gz external_mesa3d-5aa8d8194c4975876276a9c57cdd672978a491ad.tar.bz2 |
glsl: Make ir_variable::num_state_slots and ir_variable::state_slots private
Also move num_state_slots inside ir_variable_data for better packing.
The payoff for this will come in a few more patches.
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>
Reviewed-by: Tapani Pälli <tapani.palli@intel.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 96dd7bd..5159862 100644 --- a/src/glsl/ir_validate.cpp +++ b/src/glsl/ir_validate.cpp @@ -707,7 +707,7 @@ ir_validate::visit(ir_variable *ir) if (ir->data.mode == ir_var_uniform && strncmp(ir->name, "gl_", 3) == 0 - && ir->state_slots == NULL) { + && ir->get_state_slots() == NULL) { printf("built-in uniform has no state\n"); ir->print(); abort(); |