glsl: Generate an error for array-of-array declarations
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 24 Oct 2011 18:45:50 +0000 (11:45 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 28 Oct 2011 20:28:36 +0000 (13:28 -0700)
commita04211ecb8c907eaef69832abc2e16cd6f9887a0
treefdf29604948ecba3fcce17b878cf7b9c98c43572
parente79aaf000b0cf0a2f6f22695dc8e0acf3d2ce182
glsl: Generate an error for array-of-array declarations

Other parts of the code already caught things like 'float x[4][2]'.
However, nothing caught 'float [4] x[2]'.

Fixes piglit test array-multidimensional-new-syntax.vert.

NOTE: This is candidate for the 7.11 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp