glsl: Don't allow array splitting on function arguments.
authorEric Anholt <eric@anholt.net>
Mon, 16 Apr 2012 16:45:07 +0000 (09:45 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 19 Apr 2012 23:33:14 +0000 (16:33 -0700)
commit6de5da079682efd3f8887d3e0a7add7e70a5433d
treeb9d24a7a0144c4d39fd8ee72f8dc00d1867d0527
parent538ba0a36373d7d0bd047e6fc4ef4e6e8d8bb8d7
glsl: Don't allow array splitting on function arguments.

This is the reason the declaration member existed in the reference
visitor, but I didn't copy the code from structure splitting that
avoided setting it.

This wasn't currently a problem, because we don't allow splitting of
in/out variables.  But that would be nice to change some day.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/opt_array_splitting.cpp