From ae50ac46d11fbcd876e48f5d4c7767cc34e218ef Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Fri, 19 Jan 2024 18:56:18 -0800 Subject: [PATCH] intel: Remove brw_ prefix from process debug function Reviewed-by: Ivan Briano Part-of: --- src/gallium/drivers/crocus/crocus_screen.c | 2 +- src/gallium/drivers/iris/iris_screen.c | 2 +- src/intel/compiler/intel_clc.c | 2 +- src/intel/compiler/test_simd_selection.cpp | 2 +- src/intel/dev/intel_debug.c | 6 +++--- src/intel/dev/intel_debug.h | 2 +- src/intel/isl/isl_query.c | 2 +- src/intel/vulkan/anv_device.c | 2 +- src/intel/vulkan_hasvk/anv_device.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/gallium/drivers/crocus/crocus_screen.c b/src/gallium/drivers/crocus/crocus_screen.c index 70c68ce0f9e..d6b2de70409 100644 --- a/src/gallium/drivers/crocus/crocus_screen.c +++ b/src/gallium/drivers/crocus/crocus_screen.c @@ -762,7 +762,7 @@ crocus_screen_create(int fd, const struct pipe_screen_config *config) screen->fd = crocus_bufmgr_get_fd(screen->bufmgr); screen->winsys_fd = fd; - brw_process_intel_debug_variable(); + process_intel_debug_variable(); screen->driconf.dual_color_blend_by_location = driQueryOptionb(config->options, "dual_color_blend_by_location"); diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 19a39bc0d47..08e779d0512 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -832,7 +832,7 @@ iris_screen_create(int fd, const struct pipe_screen_config *config) break; } - brw_process_intel_debug_variable(); + process_intel_debug_variable(); screen->bufmgr = iris_bufmgr_get_for_fd(fd, bo_reuse); if (!screen->bufmgr) diff --git a/src/intel/compiler/intel_clc.c b/src/intel/compiler/intel_clc.c index 1479f3e556a..98ff02f6666 100644 --- a/src/intel/compiler/intel_clc.c +++ b/src/intel/compiler/intel_clc.c @@ -439,7 +439,7 @@ int main(int argc, char **argv) { int exit_code = 0; - brw_process_intel_debug_variable(); + process_intel_debug_variable(); static struct option long_options[] ={ {"help", no_argument, 0, 'h'}, diff --git a/src/intel/compiler/test_simd_selection.cpp b/src/intel/compiler/test_simd_selection.cpp index ce7490ebc6e..f3076b817a0 100644 --- a/src/intel/compiler/test_simd_selection.cpp +++ b/src/intel/compiler/test_simd_selection.cpp @@ -50,7 +50,7 @@ protected: .prog_data = prog_data, } { - brw_process_intel_debug_variable(); + process_intel_debug_variable(); } ~SIMDSelectionTest() { diff --git a/src/intel/dev/intel_debug.c b/src/intel/dev/intel_debug.c index 765b7e6f782..b1a9c7a0721 100644 --- a/src/intel/dev/intel_debug.c +++ b/src/intel/dev/intel_debug.c @@ -193,7 +193,7 @@ uint32_t intel_debug_bkp_before_draw_count = 0; uint32_t intel_debug_bkp_after_draw_count = 0; static void -brw_process_intel_debug_variable_once(void) +process_intel_debug_variable_once(void) { intel_debug = parse_debug_string(getenv("INTEL_DEBUG"), debug_control); intel_simd = parse_debug_string(getenv("INTEL_SIMD_DEBUG"), simd_control); @@ -228,12 +228,12 @@ brw_process_intel_debug_variable_once(void) } void -brw_process_intel_debug_variable(void) +process_intel_debug_variable(void) { static once_flag process_intel_debug_variable_flag = ONCE_FLAG_INIT; call_once(&process_intel_debug_variable_flag, - brw_process_intel_debug_variable_once); + process_intel_debug_variable_once); } static uint64_t debug_identifier[4] = { diff --git a/src/intel/dev/intel_debug.h b/src/intel/dev/intel_debug.h index 75ec2ad81fa..aedcc18b2c2 100644 --- a/src/intel/dev/intel_debug.h +++ b/src/intel/dev/intel_debug.h @@ -161,7 +161,7 @@ extern uint32_t intel_debug_bkp_after_draw_count; extern uint64_t intel_debug_flag_for_shader_stage(gl_shader_stage stage); -extern void brw_process_intel_debug_variable(void); +extern void process_intel_debug_variable(void); /* Below is a list of structure located in the identifier buffer. The driver * can fill those in for debug purposes. diff --git a/src/intel/isl/isl_query.c b/src/intel/isl/isl_query.c index d7d4e640d8c..304920229a9 100644 --- a/src/intel/isl/isl_query.c +++ b/src/intel/isl/isl_query.c @@ -172,7 +172,7 @@ main(int argc, char *argv[]) } } - brw_process_intel_debug_variable(); + process_intel_debug_variable(); int pci_id = intel_device_name_to_pci_device_id(platform); if (pci_id == -1) { diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 0c48296fa97..bc837fcbe84 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -2140,7 +2140,7 @@ anv_physical_device_try_create(struct vk_instance *vk_instance, int fd; int master_fd = -1; - brw_process_intel_debug_variable(); + process_intel_debug_variable(); fd = open(path, O_RDWR | O_CLOEXEC); if (fd < 0) { diff --git a/src/intel/vulkan_hasvk/anv_device.c b/src/intel/vulkan_hasvk/anv_device.c index 46996232359..78f6d4481a7 100644 --- a/src/intel/vulkan_hasvk/anv_device.c +++ b/src/intel/vulkan_hasvk/anv_device.c @@ -983,7 +983,7 @@ anv_physical_device_try_create(struct vk_instance *vk_instance, int fd; int master_fd = -1; - brw_process_intel_debug_variable(); + process_intel_debug_variable(); fd = open(path, O_RDWR | O_CLOEXEC); if (fd < 0) {