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
@@ -38,9 +38,8 @@
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "dev/intel_device_info.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/macros.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "util/macros.h"
|
||||
|
||||
|
||||
static const struct debug_control debug_control[] = {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "util/debug.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "util/macros.h"
|
||||
#include "util/u_math.h"
|
||||
#include "compiler/shader_enums.h"
|
||||
@@ -333,7 +333,7 @@ intel_get_mesh_urb_config(const struct intel_device_info *devinfo,
|
||||
static int task_urb_share_percentage = -1;
|
||||
if (task_urb_share_percentage < 0) {
|
||||
task_urb_share_percentage =
|
||||
MIN2(env_var_as_unsigned("INTEL_MESH_TASK_URB_SHARE", 10), 100);
|
||||
MIN2(debug_get_num_option("INTEL_MESH_TASK_URB_SHARE", 10), 100);
|
||||
}
|
||||
task_urb_share = task_urb_share_percentage / 100.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user