glsl: Add error case for switch() with two default cases.
authorEric Anholt <eric@anholt.net>
Mon, 30 Jan 2012 17:50:35 +0000 (09:50 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 3 Feb 2012 10:07:04 +0000 (11:07 +0100)
commit57e44371a5b6aa8122b6a482ed6bd33e797ea1d2
tree73824cdf7b1a39e036dc21ffb7d197643b6c2e98
parent140632190cf41e6a035ca199b181091d4ed46986
glsl: Add error case for switch() with two default cases.

Fixes piglit switch-case-duplicated.vert.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser_extras.h