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
@@ -36,7 +36,7 @@
|
||||
#include "genxml/genX_bits.h"
|
||||
#include "perf/intel_perf.h"
|
||||
|
||||
#include "util/debug.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "util/perf/u_trace.h"
|
||||
|
||||
/** \file anv_batch_chain.c
|
||||
@@ -1510,7 +1510,7 @@ execbuf_can_skip_relocations(struct anv_execbuf *exec)
|
||||
|
||||
static int userspace_relocs = -1;
|
||||
if (userspace_relocs < 0)
|
||||
userspace_relocs = env_var_as_boolean("ANV_USERSPACE_RELOCS", true);
|
||||
userspace_relocs = debug_get_bool_option("ANV_USERSPACE_RELOCS", true);
|
||||
if (!userspace_relocs)
|
||||
return false;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#include "anv_private.h"
|
||||
#include "anv_measure.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "util/build_id.h"
|
||||
#include "util/disk_cache.h"
|
||||
#include "util/mesa-sha1.h"
|
||||
@@ -818,7 +818,7 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
|
||||
|
||||
device->has_exec_timeline =
|
||||
anv_gem_get_param(fd, I915_PARAM_HAS_EXEC_TIMELINE_FENCES);
|
||||
if (env_var_as_boolean("ANV_QUEUE_THREAD_DISABLE", false))
|
||||
if (debug_get_bool_option("ANV_QUEUE_THREAD_DISABLE", false))
|
||||
device->has_exec_timeline = false;
|
||||
|
||||
unsigned st_idx = 0;
|
||||
@@ -843,11 +843,11 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
|
||||
device->vk.pipeline_cache_import_ops = anv_cache_import_ops;
|
||||
|
||||
device->always_use_bindless =
|
||||
env_var_as_boolean("ANV_ALWAYS_BINDLESS", false);
|
||||
debug_get_bool_option("ANV_ALWAYS_BINDLESS", false);
|
||||
|
||||
device->use_call_secondary =
|
||||
device->use_softpin &&
|
||||
!env_var_as_boolean("ANV_DISABLE_SECONDARY_CMD_BUFFER_CALLS", false);
|
||||
!debug_get_bool_option("ANV_DISABLE_SECONDARY_CMD_BUFFER_CALLS", false);
|
||||
|
||||
/* We first got the A64 messages on broadwell and we can only use them if
|
||||
* we can pass addresses directly into the shader which requires softpin.
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "drm-uapi/drm_fourcc.h"
|
||||
|
||||
#include "anv_private.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "vk_util.h"
|
||||
#include "util/u_math.h"
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "common/intel_measure.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/u_debug.h"
|
||||
|
||||
struct anv_measure_batch {
|
||||
struct anv_bo *bo;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "util/blob.h"
|
||||
#include "util/hash_table.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "util/disk_cache.h"
|
||||
#include "util/mesa-sha1.h"
|
||||
#include "nir/nir_serialize.h"
|
||||
|
||||
Reference in New Issue
Block a user