summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-06-11 13:17:27 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-06-13 19:54:47 -0700
commitbe32a2132785fbc119f17e62070e007ee7d17af7 (patch)
treea75ad721adfc0f845b1948dfc57b01a4f3193a93 /src/mesa/drivers/dri/i965/brw_context.c
parenta0ed8503b753574b14df3dc280fd917ae7c207f8 (diff)
downloadexternal_mesa3d-be32a2132785fbc119f17e62070e007ee7d17af7.zip
external_mesa3d-be32a2132785fbc119f17e62070e007ee7d17af7.tar.gz
external_mesa3d-be32a2132785fbc119f17e62070e007ee7d17af7.tar.bz2
i965/compiler: Bring back the INTEL_PRECISE_TRIG environment variable
This was removed in d9546b0c5d and replced with the precise_trig driconf option. However, we still need precise trig in the Vulkan driver so this commit brings back the environment variable and compiler->precise_trig is effectively the logical OR of the two. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96484 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index a5c6581..dabe6c6 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -803,8 +803,8 @@ brw_process_driconf_options(struct brw_context *brw)
brw->precompile = driQueryOptionb(&brw->optionCache, "shader_precompile");
- brw->intelScreen->compiler->precise_trig =
- driQueryOptionb(&brw->optionCache, "precise_trig");
+ if (driQueryOptionb(&brw->optionCache, "precise_trig"))
+ brw->intelScreen->compiler->precise_trig = true;
ctx->Const.ForceGLSLExtensionsWarn =
driQueryOptionb(options, "force_glsl_extensions_warn");