glsl: Export the compiler's GS layout qualifiers to the gl_shader.
authorEric Anholt <eric@anholt.net>
Thu, 13 Jun 2013 00:21:44 +0000 (17:21 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 2 Aug 2013 03:23:43 +0000 (20:23 -0700)
commit010a6a8fd343537101e7ac5e8dfcf9b07fc841fb
treefe1aeaecbac4ad1c965e24a3ed43be652b6433cb
parent624b7bac76c3f70a3a110d114a3c1c327d3dad5f
glsl: Export the compiler's GS layout qualifiers to the gl_shader.

Next step is to validate them at link time.

v2 (Paul Berry <stereotype441@gmail.com>): Don't attempt to export the
layout qualifiers in the event of a compile error, since some of them
are set up by ast_to_hir(), and ast_to_hir() isn't guaranteed to have
run in the event of a compile error.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
v3 (Paul Berry <stereotype441@gmail.com>): Use PRIM_UNKNOWN to
represent "not set in this shader".

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser_extras.cpp
src/mesa/main/mtypes.h