From 448f4c0c891945ea3d440d26045db33580673db7 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 17 Mar 2017 01:06:54 +0100 Subject: driconf: add force_glsl_abs_sqrt option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marek Olšák --- src/mesa/state_tracker/st_extensions.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/state_tracker') 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) -- cgit v1.2.3