diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2012-12-14 12:00:14 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-01-25 09:07:34 -0500 |
commit | 13be1f4a103802ed936f2374d72b2f6979dafd58 (patch) | |
tree | 636053ac19725220449afbcb65310ec99e1c1ddf /src/glsl/lower_ubo_reference.cpp | |
parent | 17e6f1904444be019cafa208495e3fe479cb86fd (diff) | |
download | external_mesa3d-13be1f4a103802ed936f2374d72b2f6979dafd58.zip external_mesa3d-13be1f4a103802ed936f2374d72b2f6979dafd58.tar.gz external_mesa3d-13be1f4a103802ed936f2374d72b2f6979dafd58.tar.bz2 |
glsl: Add ir_variable::is_in_uniform_block predicate
The way a variable is tested for this property is about to change, and
this makes the code easier to modify.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/lower_ubo_reference.cpp')
-rw-r--r-- | src/glsl/lower_ubo_reference.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/lower_ubo_reference.cpp b/src/glsl/lower_ubo_reference.cpp index e8d2c47..1d08009 100644 --- a/src/glsl/lower_ubo_reference.cpp +++ b/src/glsl/lower_ubo_reference.cpp @@ -78,7 +78,7 @@ lower_ubo_reference_visitor::handle_rvalue(ir_rvalue **rvalue) return; ir_variable *var = deref->variable_referenced(); - if (!var || var->uniform_block == -1) + if (!var || !var->is_in_uniform_block()) return; mem_ctx = ralloc_parent(*rvalue); |