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/util/debug.h | |
parent | d3e2c48dfa669899484159cf723d8da574996f65 (diff) |
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/util/debug.h')
-rw-r--r-- | src/util/debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/debug.h b/src/util/debug.h index 801736aafff..35554179ab0 100644 --- a/src/util/debug.h +++ b/src/util/debug.h @@ -38,6 +38,8 @@ struct debug_control { uint64_t parse_debug_string(const char *debug, const struct debug_control *control); +bool +env_var_as_boolean(const char *var_name, bool default_value); #ifdef __cplusplus } /* extern C */ |