glsl: Treat layout-qualifier-id's as case-insensitive in desktop GLSL.
authorPaul Berry <stereotype441@gmail.com>
Wed, 16 Oct 2013 00:25:44 +0000 (17:25 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 17 Oct 2013 18:51:01 +0000 (11:51 -0700)
commit79e835a71202f1a6e112266b199e833d952da606
tree310951d698c55b05eec6e8d3c044f6100c43c29c
parenta36f7e651e947ff14dbbd242b1d9ab160442c532
glsl: Treat layout-qualifier-id's as case-insensitive in desktop GLSL.

In desktop GLSL, location qualifiers are case-insensitive.  In GLSL
ES, they are case-sensitive.  This patch handles the difference by
using a new function to match layout qualifiers,
match_layout_qualifier(), which calls either strcmp() or strcasecmp()
as appropriate.

Fixes piglit tests:
- layout-not-case-sensitive-in.geom
- layout-not-case-sensitive-max-vert.geom
- layout-not-case-sensitive-out.geom
- layout-not-case-sensitive.frag

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glsl_parser.yy