i965/compiler: Bring back the INTEL_PRECISE_TRIG environment variable
[mesa.git] / src / mesa / drivers / dri / i965 / brw_context.c
index a5c658196f1dacfaaebb16869291a8a7536106ef..dabe6c6c012a16fb978d77e68adcda5e3a2b94c7 100644 (file)
@@ -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");