glsl: Update ir_variable::max_ifc_array_access properly.
authorPaul Berry <stereotype441@gmail.com>
Thu, 19 Sep 2013 16:36:41 +0000 (09:36 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 9 Oct 2013 23:49:38 +0000 (16:49 -0700)
commitf878d2060c196c8130af0912ffc4493c631b1c34
treeee3fa5b545d46cbe487838e99929ae25741e88b6
parentca8a5ce9193b21b2e567f6dfc877412109d106ca
glsl: Update ir_variable::max_ifc_array_access properly.

This patch modifies update_max_array_access() so that it updates
ir_variable::max_ifc_array_access to reflect the shader's use of
arrays appearing within interface blocks.

v2: Use an ordinary function in ast_array_index.cpp rather than a
virtual function in ir_rvalue.  Avoid dereferencing NULL when handling
accesses to ordinary structs.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/ast_array_index.cpp