mesa/src
John Brooks 2b878cb8fd drirc: Add allow_glsl_builtin_variable_redeclaration for Dying Light and Dead Island Definitive Edition
This fixes the long-standing problem with Dying Light where the game would
produce a black screen when running under Mesa. This happened because the
game's vertex shaders redeclare gl_VertexID, which is a GLSL builtin.
Mesa's GLSL compiler is a little more strict than others, and would not
compile them:

    error: `gl_VertexID' redeclared

The allow_glsl_builtin_variable_redeclaration directive allows the shaders
to compile and the game to render. The game also requires OpenGL 4.4+ (GLSL
440), but does not request it explicitly. It must be forced with an
override, such as MESA_GL_VERSION_OVERRIDE=4.5 and
MESA_GLSL_VERSION_OVERRIDE=450. A compatibility context is *not* required
and forcing one with 4.5COMPAT or allow_higher_compat_version results in
graphical artifacts.

Dead Island Definitive Edition is another Techland port on the same engine
with the same problems, so we set the
allow_glsl_builtin_variable_redeclaration option for that game as well.

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

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96449
Signed-off-by: John Brooks <john@fastquake.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2017-05-20 17:30:07 +02:00
..
amd configure: check once for DRI3 dependencies 2017-05-19 19:44:15 +01:00
compiler glsl: Conditionally allow redeclaration of built-in variables 2017-05-20 17:30:05 +02:00
egl configure: set HAVE_foo_PLATFORM as applicable 2017-05-19 19:44:09 +01:00
gallium driconf: Add allow_glsl_builtin_variable_redeclaration option 2017-05-20 17:29:55 +02:00
gbm configure: set HAVE_foo_PLATFORM as applicable 2017-05-19 19:44:09 +01:00
getopt
glx glxglvnddispatch: Add missing dispatch for GetDriverConfig 2017-05-17 20:02:18 +02:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel android: add -Wl,--build-id=sha1 to LDFLAGS for libvulkan_intel 2017-05-20 08:59:57 +03:00
loader loader: build libloader_dri3_helper.la only with HAVE_PLATFORM_X11 2017-05-19 19:44:22 +01:00
mapi mesa: add KHR_no_error support for glDispatchCompute*() 2017-05-17 10:12:04 +10:00
mesa drirc: Add allow_glsl_builtin_variable_redeclaration for Dying Light and Dead Island Definitive Edition 2017-05-20 17:30:07 +02:00
util Android: correct libz dependency 2017-05-17 14:04:18 +01:00
vulkan vulkan: automake: remove unused VULKAN_LIB_DEPS variable 2017-05-19 19:44:17 +01:00
Makefile.am intel/vulkan: Get rid of recursive make 2017-03-13 11:16:35 +00:00
SConscript