glsl: Trim the size of uniform arrays to the maximum element used.
authorEric Anholt <eric@anholt.net>
Mon, 23 Aug 2010 17:32:01 +0000 (10:32 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 23 Aug 2010 17:34:31 +0000 (10:34 -0700)
commita721abfbd1724e83381b46fc670bb38fbde76f69
treed6ecf823c668122e3c6179a2db31fea69774d690
parent001a7bfdfc8b3c8930d5ced21982dbdfb8cd35b3
glsl: Trim the size of uniform arrays to the maximum element used.

Fixes glsl-getactiveuniform-array-size.
src/glsl/ast_to_hir.cpp
src/glsl/linker.cpp