glsl: Reject non-scalar switch expressions.
authorEric Anholt <eric@anholt.net>
Mon, 14 May 2012 15:45:59 +0000 (08:45 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 17 May 2012 17:05:24 +0000 (10:05 -0700)
commitbbbc7c7d566905920967f56648fc26abcb37f4a1
tree2f2fac9b059c3dfa5ca86fd428ebc2a96221cdef
parent5d6ea16dfe99e1aba61c25a897b66951faab1a39
glsl: Reject non-scalar switch expressions.

The comment quotes spec saying that only scalar integers are allowed,
but we only checked for integer.

Fixes piglit switch-expression-const-ivec2.vert

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