summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_extensions.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-03-17 01:06:54 +0100
committerSamuel Pitoiset <[email protected]>2017-03-22 22:01:01 +0100
commit448f4c0c891945ea3d440d26045db33580673db7 (patch)
treecf287512bbc4fa2f06a3f842a19455db49c599d3 /src/mesa/state_tracker/st_extensions.c
parent08f864abd9e241c7db9c99212a66cdad69bdd4d8 (diff)
driconf: add force_glsl_abs_sqrt option
This will allow to force computing the absolute value for sqrt() and inversesqrt() in order to follow D3D9 behaviour for buggy apps that rely on it. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r--src/mesa/state_tracker/st_extensions.c2
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 0dc2580a88c..16f86856a34 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -881,6 +881,8 @@ void st_init_extensions(struct pipe_screen *screen,
consts->AllowHigherCompatVersion = options->allow_higher_compat_version;
+ consts->ForceGLSLAbsSqrt = options->force_glsl_abs_sqrt;
+
consts->dri_config_options_sha1 = options->config_options_sha1;
if (consts->GLSLVersion >= 400)