glsl: Handle array declarations in function parameters.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 21 Aug 2010 22:30:34 +0000 (15:30 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 21 Aug 2010 22:42:27 +0000 (15:42 -0700)
commite511a35fc53fb75a2401d8a94c0c35634175c575
tree80bd600e86c05c12a26123d907647a8739bf49e3
parent4edeeaf71564582d5afebc9cb59f4b3f7fb40a7e
glsl: Handle array declarations in function parameters.

The 'vec4[12] foo' style already worked, but the 'vec4 foo[12]' style
did not.  Also, 'vec4[] foo' was wrongly accepted.

Fixes piglit test cases array-19.vert and array-21.vert.

May fix fd.o bug #29684 (or at least part of it).
src/glsl/ast_to_hir.cpp