Mesa (master): gallium/hud: rename API-thread-busy to main-thread-busy
Marek Olšák
mareko at kemper.freedesktop.org
Mon Jun 26 00:22:14 UTC 2017
Module: Mesa
Branch: master
Commit: 7492201c4e7b7b3d6575a43673142d6735cb3977
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7492201c4e7b7b3d6575a43673142d6735cb3977
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jun 21 19:54:45 2017 +0200
gallium/hud: rename API-thread-busy to main-thread-busy
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
---
src/gallium/auxiliary/hud/hud_context.c | 4 ++--
src/gallium/auxiliary/hud/hud_cpu.c | 4 ++--
src/gallium/auxiliary/hud/hud_private.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index cb7ed44659..922ab96979 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -1194,8 +1194,8 @@ hud_parse_env_var(struct hud_context *hud, const char *env)
else if (sscanf(name, "cpu%u%s", &i, s) == 1) {
hud_cpu_graph_install(pane, i);
}
- else if (strcmp(name, "API-thread-busy") == 0) {
- hud_api_thread_busy_install(pane);
+ else if (strcmp(name, "main-thread-busy") == 0) {
+ hud_main_thread_busy_install(pane, name);
}
#if HAVE_GALLIUM_EXTRA_HUD
else if (sscanf(name, "nic-rx-%s", arg_name) == 1) {
diff --git a/src/gallium/auxiliary/hud/hud_cpu.c b/src/gallium/auxiliary/hud/hud_cpu.c
index 302445d19b..26f9fa78ee 100644
--- a/src/gallium/auxiliary/hud/hud_cpu.c
+++ b/src/gallium/auxiliary/hud/hud_cpu.c
@@ -266,7 +266,7 @@ query_api_thread_busy_status(struct hud_graph *gr)
}
void
-hud_api_thread_busy_install(struct hud_pane *pane)
+hud_main_thread_busy_install(struct hud_pane *pane, const char *name)
{
struct hud_graph *gr;
@@ -274,7 +274,7 @@ hud_api_thread_busy_install(struct hud_pane *pane)
if (!gr)
return;
- strcpy(gr->name, "API-thread-busy");
+ strcpy(gr->name, name);
gr->query_data = CALLOC_STRUCT(thread_info);
if (!gr->query_data) {
diff --git a/src/gallium/auxiliary/hud/hud_private.h b/src/gallium/auxiliary/hud/hud_private.h
index bbc5ec70c8..bf9962dbab 100644
--- a/src/gallium/auxiliary/hud/hud_private.h
+++ b/src/gallium/auxiliary/hud/hud_private.h
@@ -93,7 +93,7 @@ int hud_get_num_cpus(void);
void hud_fps_graph_install(struct hud_pane *pane);
void hud_cpu_graph_install(struct hud_pane *pane, unsigned cpu_index);
-void hud_api_thread_busy_install(struct hud_pane *pane);
+void hud_main_thread_busy_install(struct hud_pane *pane, const char *name);
void hud_pipe_query_install(struct hud_batch_query_context **pbq,
struct hud_pane *pane, struct pipe_context *pipe,
const char *name, unsigned query_type,
More information about the mesa-commit
mailing list