diff options
author | Tapani Pälli <[email protected]> | 2017-11-24 07:46:07 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2017-11-30 11:43:10 +0200 |
commit | faccbaf3faf9a7cdcda3e4032fafd0f6064459bd (patch) | |
tree | dff07c0c37ff3198f58ae018f2b04762612d0e3d /src/mesa/state_tracker | |
parent | 8c1e4b1afc8d396ccf99c725c59b29a9aa305557 (diff) |
mesa: add AllowGLSLCrossStageInterpolationMismatch workaround
This fixes issues seen with certain versions of Unreal Engine 4 editor
and games built with that using GLSL 4.30.
v2: add driinfo_gallium change (Emil Velikov)
Signed-off-by: Tapani Pälli <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97852
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103801
Acked-by: Andres Gomez <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index de3d1ef4e9b..9ef0df1e926 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -941,6 +941,8 @@ void st_init_extensions(struct pipe_screen *screen, consts->dri_config_options_sha1 = options->config_options_sha1; + consts->AllowGLSLCrossStageInterpolationMismatch = options->allow_glsl_cross_stage_interpolation_mismatch; + if (consts->GLSLVersion >= 400) extensions->ARB_gpu_shader5 = GL_TRUE; if (consts->GLSLVersion >= 410) |