glsl: parser changes for GL_ARB_explicit_uniform_location
authorTapani Pälli <tapani.palli@intel.com>
Wed, 5 Mar 2014 10:35:03 +0000 (12:35 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 16 Jun 2014 03:49:59 +0000 (06:49 +0300)
commite8fb8b1bb35ff22897df9b6d607f3cb2a203f88c
tree5c9013bba2e2ee66c70fb58837352bea9819e74e
parent8381f0f0c375308f96b602ba27315d3824c86e8a
glsl: parser changes for GL_ARB_explicit_uniform_location

Patch adds a preprocessor define for the extension and stores explicit
location data for uniforms during AST->HIR conversion. It also sets
layout token to be available when having the extension in place.

v2: change parser check to require GLSL 330 or enabling
    GL_ARB_explicit_attrib_location (Ian)
v3: fix the check and comment in AST->HIR (Petri)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/ast_to_hir.cpp
src/glsl/glcpp/glcpp-parse.y
src/glsl/glsl_lexer.ll
src/glsl/glsl_parser_extras.h