nir: Add a NIR_VALIDATE environment variable
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 23 Jun 2016 21:22:03 +0000 (14:22 -0700)
committerRob Clark <robclark@freedesktop.org>
Sat, 25 Jun 2016 11:34:20 +0000 (07:34 -0400)
commit81978c6febd43b8a88a4db09133f9659e15b492c
treec9077368b1fc13847a82622e63a5dcfa91a3cc8f
parentb76fa5673924ce09e28f3000808e3bd50ffe4570
nir: Add a NIR_VALIDATE environment variable

It defaults to true so default behavior doesn't change but it allows you to
do NIR_VALIDATE=false if you don't want validation.  Disabling validation
can substantially speed up shader compiles so you frequently want to turn
it off if compiler invariants aren't in question.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/compiler/nir/nir_validate.c