OSDN Git Service

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)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Feb 2012 18:26:16 +0000 (10:26 -0800)
commitf775d9aa848c61dcf7eb2ca6d599b40366034848
tree3a4e80707fdef420ab51de421341f5dffd52eb3b
parent6887ec766b33ed7a9d44376050d5876f2b6c88ec
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>
(cherry picked from commit 22d81f154fed9e004cca91807808ae3b81b01ced)
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h