glsl: Parse the GLSL 1.50 GS layout qualifiers.
authorEric Anholt <eric@anholt.net>
Wed, 12 Jun 2013 21:03:49 +0000 (14:03 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 2 Aug 2013 03:23:33 +0000 (20:23 -0700)
commit624b7bac76c3f70a3a110d114a3c1c327d3dad5f
treef0be97cc9ddfe6d4bd5762801e5f46801ea4077d
parentf2e14238a79100f22ccdcdda2a2267ff9fc85655
glsl: Parse the GLSL 1.50 GS layout qualifiers.

Limited semantic checking (compatibility between declarations, checking
that they're in the right shader target, etc.) is done.

v2: Remove stray debug printfs.

v3 (Paul Berry <stereotype441@gmail.com>): Process input layout
qualifiers at ast_to_hir time rather than at parse time, since certain
error conditions depend on the relative ordering between input layout
qualifiers, declarations, and calls to .length().

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast.h
src/glsl/ast_to_hir.cpp
src/glsl/ast_type.cpp
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h