diff options
author | Rob Clark <robclark@freedesktop.org> | 2015-11-18 16:43:31 -0500 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2015-11-24 10:02:55 -0500 |
commit | d278e31459374feb18edd97d5adaacccc08f978a (patch) | |
tree | 39a401065cc3701c7abcd8ae0eeedf7cdd6d8ebd /src/mesa/drivers/dri/i965/brw_nir.c | |
parent | d3e2c48dfa669899484159cf723d8da574996f65 (diff) | |
download | external_mesa3d-d278e31459374feb18edd97d5adaacccc08f978a.zip external_mesa3d-d278e31459374feb18edd97d5adaacccc08f978a.tar.gz external_mesa3d-d278e31459374feb18edd97d5adaacccc08f978a.tar.bz2 |
util: move brw_env_var_as_boolean() to util
Kind of a handy function. And I'll want it available outside of i965
for common nir-pass helpers.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Nicolai Hähnle <nhaehnle@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_nir.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c index 91358d8..5d9a2fe 100644 --- a/src/mesa/drivers/dri/i965/brw_nir.c +++ b/src/mesa/drivers/dri/i965/brw_nir.c @@ -171,12 +171,14 @@ brw_nir_lower_outputs(nir_shader *nir, bool is_scalar) } } +#include "util/debug.h" + static bool should_clone_nir() { static int should_clone = -1; if (should_clone < 1) - should_clone = brw_env_var_as_boolean("NIR_TEST_CLONE", false); + should_clone = env_var_as_boolean("NIR_TEST_CLONE", false); return should_clone; } |