i965/nir: Make our environment variable checking smarter
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 Mar 2015 19:10:58 +0000 (12:10 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 18 Mar 2015 23:40:22 +0000 (16:40 -0700)
commite1f3ddef8c9928d9b8e845b811dc08983c541f99
tree5a9f78d2a9fde03703f5177a508a95d7097f6832
parent37e3a116f8ae09d0fa894d126d081a1af24ec14f
i965/nir: Make our environment variable checking smarter

Before, we enabled NIR if you set INTEL_USE_NIR to anything which mean that
INTEL_USE_NIR=false would actually turn on NIR.  In preparation for turning
NIR on by default, this commit makes it smarter by allowing the
INTEL_USE_NIR variable to work as either a force-enable or a force-disable.

Reviewed-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp