glsl: Conditionally allow redeclaration of built-in variables
authorJohn Brooks <john@fastquake.com>
Mon, 15 May 2017 05:47:38 +0000 (01:47 -0400)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 20 May 2017 15:30:05 +0000 (17:30 +0200)
commit6e8f34a2deab4d8c259066eae892119afef7cfb0
tree66446ff0c0997edb071c78c6e0577163fc018947
parentbf4d7671f423f5d4e451fba81bb9d9ae57f5fe5b
glsl: Conditionally allow redeclaration of built-in variables

Conditional on allow_glsl_builtin_variable_redeclaration driconf option.

v2 (Samuel Pitoiset):
    - Rename allow_glsl_builtin_redeclaration ->
      allow_glsl_builtin_variable_redeclaration
    - style: put spaces after 'if'

Signed-off-by: John Brooks <john@fastquake.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/glsl_parser_extras.h