glsl: Handle centroid qualifier ordering in C code, not the parser.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 14 Jul 2013 02:35:02 +0000 (19:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Jul 2013 23:57:23 +0000 (16:57 -0700)
commitb5d6c51e2bff2a11d8150c04e5e470be941911a7
tree3f6469cd27515715df2964f7fc7ad46ad2f8640e
parent844307a58470f88cf895789a6f797a0722d11434
glsl: Handle centroid qualifier ordering in C code, not the parser.

The GL_ARB_shading_language_420pack extension/GLSL 4.20 split centroid
off into a new category, "auxiliary storage qualifiers," and allow these
to be placed anywhere in the series.  So we have to stop recognizing
"centroid in"/"centroid out"/"centroid varying" in the grammar and get
more creative.

The same approach used before works here, too.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/glsl_parser.yy