diff options
author | Marek Olšák <[email protected]> | 2017-11-18 16:25:52 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-25 17:16:56 +0100 |
commit | 3132afdf4c12abcb32a2cbe7eb262b9907e60594 (patch) | |
tree | f7ee2e97e461629ddd7b173fb56f5d11997502ce /src/gallium/auxiliary/hud/hud_cpu.c | |
parent | 0e319ed835e6ba6fdff6f5d0bb3728e950aec74f (diff) |
gallium/hud: pass pipe_context explicitly to most functions
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_cpu.c')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_cpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/hud/hud_cpu.c b/src/gallium/auxiliary/hud/hud_cpu.c index 581dad6df04..259bb837639 100644 --- a/src/gallium/auxiliary/hud/hud_cpu.c +++ b/src/gallium/auxiliary/hud/hud_cpu.c @@ -144,7 +144,7 @@ struct cpu_info { }; static void -query_cpu_load(struct hud_graph *gr) +query_cpu_load(struct hud_graph *gr, struct pipe_context *pipe) { struct cpu_info *info = gr->query_data; uint64_t now = os_time_get(); @@ -173,7 +173,7 @@ query_cpu_load(struct hud_graph *gr) } static void -free_query_data(void *p) +free_query_data(void *p, struct pipe_context *pipe) { FREE(p); } @@ -238,7 +238,7 @@ struct thread_info { }; static void -query_api_thread_busy_status(struct hud_graph *gr) +query_api_thread_busy_status(struct hud_graph *gr, struct pipe_context *pipe) { struct thread_info *info = gr->query_data; int64_t now = os_time_get_nano(); @@ -335,7 +335,7 @@ static unsigned get_counter(struct hud_graph *gr, enum hud_counter counter) } static void -query_thread_counter(struct hud_graph *gr) +query_thread_counter(struct hud_graph *gr, struct pipe_context *pipe) { struct counter_info *info = gr->query_data; int64_t now = os_time_get_nano(); |