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>
This commit is contained in:
Illia Abernikhin
2022-09-13 12:49:56 +03:00
committed by Marge Bot
parent 0e47171abe
commit aa4ac5ff8b
91 changed files with 150 additions and 250 deletions

View File

@@ -35,7 +35,7 @@
#include "ir.h"
#include "ir_hierarchical_visitor.h"
#include "util/debug.h"
#include "util/u_debug.h"
#include "util/hash_table.h"
#include "util/macros.h"
#include "util/set.h"
@@ -1214,7 +1214,7 @@ validate_ir_tree(exec_list *instructions)
* anything.
*/
#ifndef DEBUG
if (!env_var_as_boolean("GLSL_VALIDATE", false))
if (!debug_get_bool_option("GLSL_VALIDATE", false))
return;
#endif
ir_validate v;