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:

committed by
Marge Bot

parent
0e47171abe
commit
aa4ac5ff8b
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "anv_nir.h"
|
||||
#include "nir/nir_builder.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/u_debug.h"
|
||||
|
||||
/**
|
||||
* This file implements the lowering required for VK_KHR_multiview.
|
||||
@@ -305,7 +305,7 @@ anv_check_for_primitive_replication(struct anv_device *device,
|
||||
|
||||
primitive_replication_max_views =
|
||||
MIN2(MAX_VIEWS_FOR_PRIMITIVE_REPLICATION,
|
||||
env_var_as_unsigned("ANV_PRIMITIVE_REPLICATION_MAX_VIEWS",
|
||||
debug_get_num_option("ANV_PRIMITIVE_REPLICATION_MAX_VIEWS",
|
||||
default_max_views));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user