diff options
author | Illia Abernikhin <illia.abernikhin@globallogic.com> | 2022-09-13 12:49:56 +0300 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-11-02 07:25:39 +0000 |
commit | aa4ac5ff8bb8932c451c515fb9359bdecc9047f7 (patch) | |
tree | 9f81da013602131ac4682410bd65f43a5d324472 /src/mesa/main | |
parent | 0e47171abea1afe89c0e368a0a6c8867de69fa68 (diff) |
utils: Merge util/debug.* into util/u_debug.* and remove util/debug.*
Rename env_var_as_unsigned() -> debug_get_num_option(), because duplicate
Rename env_var_as_bool() -> debug_get_bool_option(), because duplicate
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7177
Signed-off-by: Illia Abernikhin <illia.abernikhin@globallogic.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19336>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/bufferobj.c | 4 | ||||
-rw-r--r-- | src/mesa/main/context.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 38129d46230..5ff1ad21bd1 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -32,7 +32,7 @@ #include <stdbool.h> #include <inttypes.h> /* for PRId64 macro */ -#include "util/debug.h" +#include "util/u_debug.h" #include "glheader.h" #include "enums.h" #include "hash.h" @@ -1062,7 +1062,7 @@ get_no_minmax_cache() static bool disable = false; if (!read) { - disable = env_var_as_boolean("MESA_NO_MINMAX_CACHE", false); + disable = debug_get_bool_option("MESA_NO_MINMAX_CACHE", false); read = true; } diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index b3a32b57380..33fcf8877bf 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -124,7 +124,7 @@ #include "shaderobj.h" #include "shaderimage.h" #include "state.h" -#include "util/debug.h" +#include "util/u_debug.h" #include "util/disk_cache.h" #include "util/strtod.h" #include "util/u_call_once.h" @@ -714,7 +714,7 @@ init_attrib_groups(struct gl_context *ctx) ctx->ErrorValue = GL_NO_ERROR; ctx->ShareGroupReset = false; ctx->VertexProgram._VaryingInputs = VERT_BIT_ALL; - ctx->IntelBlackholeRender = env_var_as_boolean("INTEL_BLACKHOLE_DEFAULT", false); + ctx->IntelBlackholeRender = debug_get_bool_option("INTEL_BLACKHOLE_DEFAULT", false); return GL_TRUE; } |