driconf: Add allow_glsl_builtin_variable_redeclaration option
authorJohn Brooks <john@fastquake.com>
Mon, 15 May 2017 05:47:37 +0000 (01:47 -0400)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 20 May 2017 15:29:55 +0000 (17:29 +0200)
commitbf4d7671f423f5d4e451fba81bb9d9ae57f5fe5b
tree40eca7487016e44dc4831a07fa60addb3d1e97f7
parent61d8f3387d1f2b724c833418968ba407fc294032
driconf: Add allow_glsl_builtin_variable_redeclaration option

This option will allow GLSL builtins to be redeclared verbatim (e.g.
redeclaring "in int gl_VertexID" in a vertex shader). This is not strictly
valid and would normally fail to compile, but some applications (such as
newer Techland ports) do it and need more leniency.

v2 (Samuel Pitoiset):
    - Rename allow_glsl_builtin_redeclaration ->
      allow_glsl_builtin_variable_redeclaration

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/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/dri/dri_screen.c
src/mesa/drivers/dri/common/xmlpool/t_options.h
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_extensions.c