diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2013-12-12 15:08:59 +0200 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2013-12-12 17:28:11 +0200 |
commit | 447bb9029f7e03b03e507053b9f63536d8fc74ac (patch) | |
tree | cda0ab8ca2637995300aa4544e0cf733bfead1da /src/glsl/ast_array_index.cpp | |
parent | 33ee2c67c0a4e8f2fefbf37dacabd14918060af5 (diff) | |
download | external_mesa3d-447bb9029f7e03b03e507053b9f63536d8fc74ac.zip external_mesa3d-447bb9029f7e03b03e507053b9f63536d8fc74ac.tar.gz external_mesa3d-447bb9029f7e03b03e507053b9f63536d8fc74ac.tar.bz2 |
glsl: move variables in to ir_variable::data, part II
This patch moves following bitfields and variables to the data
structure:
explicit_location, explicit_index, explicit_binding, has_initializer,
is_unmatched_generic_inout, location_frac, from_named_ifc_block_nonarray,
from_named_ifc_block_array, depth_layout, location, index, binding,
max_array_access, atomic
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl/ast_array_index.cpp')
-rw-r--r-- | src/glsl/ast_array_index.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/ast_array_index.cpp b/src/glsl/ast_array_index.cpp index 2fe838d..a5f2320 100644 --- a/src/glsl/ast_array_index.cpp +++ b/src/glsl/ast_array_index.cpp @@ -41,8 +41,8 @@ update_max_array_access(ir_rvalue *ir, unsigned idx, YYLTYPE *loc, { if (ir_dereference_variable *deref_var = ir->as_dereference_variable()) { ir_variable *var = deref_var->var; - if (idx > var->max_array_access) { - var->max_array_access = idx; + if (idx > var->data.max_array_access) { + var->data.max_array_access = idx; /* Check whether this access will, as a side effect, implicitly cause * the size of a built-in array to be too large. @@ -184,7 +184,7 @@ _mesa_ast_array_index_to_hir(void *mem_ctx, */ ir_variable *v = array->whole_variable_referenced(); if (v != NULL) - v->max_array_access = array->type->array_size() - 1; + v->data.max_array_access = array->type->array_size() - 1; } /* From page 23 (29 of the PDF) of the GLSL 1.30 spec: |