glsl: Strip arrayness from ir_type_dereference_variable too
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 10 Sep 2014 22:19:43 +0000 (15:19 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Sep 2014 14:59:53 +0000 (07:59 -0700)
commitc3f17bb18f597d7f606805ae94363dae7fd51582
tree319779f3d3ef3a5973ee85e3ca0366187ae95d91
parent2ab71e1486e76722154b48faef8216ff8173fd30
glsl: Strip arrayness from ir_type_dereference_variable too

If the thing being dereferenced is a record or an array of records, it
should be treated as row-major.  The ir_type_derference_record path
already does this, and I think I intended to do the same for this path
in b17a4d5d.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83741
Cc: mesa-stable@lists.freedesktop.org
src/glsl/lower_ubo_reference.cpp