diff options
author | Jason Ekstrand <[email protected]> | 2015-04-02 17:02:43 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-04-03 14:12:49 -0700 |
commit | bff421332661bfd0f82ab9eee9e4fec9d06ed1a1 (patch) | |
tree | 59eee1a8af4906daeb0fcae2cb365765b54717f8 /src/mesa/drivers/dri/i965/brw_fs.cpp | |
parent | dccc57eaba5e5920a6c151e7abb386a636ebf861 (diff) |
i965: Check the INTEL_USE_NIR environment variable once at context creation
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index f30176c0541..1f8febc594d 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -3861,7 +3861,7 @@ fs_visitor::run_vs() if (INTEL_DEBUG & DEBUG_SHADER_TIME) emit_shader_time_begin(); - if (brw_env_var_as_boolean("INTEL_USE_NIR", false)) { + if (brw->ctx.Const.ShaderCompilerOptions[MESA_SHADER_VERTEX].NirOptions) { emit_nir_code(); } else { foreach_in_list(ir_instruction, ir, shader->base.ir) { @@ -3934,7 +3934,7 @@ fs_visitor::run_fs() /* Generate FS IR for main(). (the visitor only descends into * functions called "main"). */ - if (brw_env_var_as_boolean("INTEL_USE_NIR", false)) { + if (brw->ctx.Const.ShaderCompilerOptions[MESA_SHADER_FRAGMENT].NirOptions) { emit_nir_code(); } else if (shader) { foreach_in_list(ir_instruction, ir, shader->base.ir) { |