glsl: Save and restore the whole switch state for nesting.
authorEric Anholt <eric@anholt.net>
Sat, 28 Jan 2012 19:26:02 +0000 (11:26 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 3 Feb 2012 10:06:50 +0000 (11:06 +0100)
commit22d81f154fed9e004cca91807808ae3b81b01ced
treeee39e66020ecb289915ca90489bc9f621275b0e7
parentb8c9252570d126e06607cd28b14f0fe3a2ffe4cf
glsl: Save and restore the whole switch state for nesting.

This stuffs them all in a struct for sanity.  Fixes piglit
glsl-1.30/execution/switch/fs-uniform-nested.

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.cpp
src/glsl/glsl_parser_extras.h