glsl: Take advantage of the layout qualifier flags union to clean up parsing.
authorEric Anholt <eric@anholt.net>
Tue, 24 Apr 2012 19:14:39 +0000 (12:14 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Jul 2012 18:04:45 +0000 (11:04 -0700)
commit60a784d56e0034d32b9c243afd860cf095d3d2c5
tree1de5f72be5f32e053e30c7f20d06d2e0d195d379
parent9b00edc79a49bd9fdef9102e3d74828d93ee185e
glsl: Take advantage of the layout qualifier flags union to clean up parsing.

The got_one variable was set iff one of the bits in flags.i was set.

v2: Fix incorrect dropping of the ARB_conservative_depth warning.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser.yy