glsl: handle case where index is array deref in optimize_split_arrays
authorTapani Pälli <tapani.palli@intel.com>
Thu, 19 Nov 2015 11:12:13 +0000 (13:12 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 25 Nov 2015 09:25:57 +0000 (11:25 +0200)
commit315c4c315e311674c840069174244eef97c92705
tree7ae590c0e057dd57916b266cb64338d199d66ca8
parent63c344d179a8bbfd56c5c08f576be728bfb3d6b0
glsl: handle case where index is array deref in optimize_split_arrays

Previously pass did not traverse to those array dereferences which were
used as indices to arrays. This fixes Synmark2 Gl42CSCloth application
issues.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/glsl/opt_array_splitting.cpp