[Mesa-dev] [PATCH] gallium/hud: update some query functions

Grazvydas Ignotas notasas at gmail.com
Sat Feb 3 22:19:55 UTC 2018


It seems these were missed when struct pipe_context * argument was
added to hud_graph::query_new_value.

Fixes: 3132afdf4c "gallium/hud: pass pipe_context explicitly to most functions"
---
 src/gallium/auxiliary/hud/hud_cpufreq.c      | 2 +-
 src/gallium/auxiliary/hud/hud_diskstat.c     | 2 +-
 src/gallium/auxiliary/hud/hud_nic.c          | 2 +-
 src/gallium/auxiliary/hud/hud_sensors_temp.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/auxiliary/hud/hud_cpufreq.c b/src/gallium/auxiliary/hud/hud_cpufreq.c
index f5b7c0f2..78a6607 100644
--- a/src/gallium/auxiliary/hud/hud_cpufreq.c
+++ b/src/gallium/auxiliary/hud/hud_cpufreq.c
@@ -89,11 +89,11 @@ get_file_value(const char *fn, uint64_t *KHz)
 
    return ret;
 }
 
 static void
-query_cfi_load(struct hud_graph *gr)
+query_cfi_load(struct hud_graph *gr, struct pipe_context *pipe)
 {
    struct cpufreq_info *cfi = gr->query_data;
 
    uint64_t now = os_time_get();
    if (cfi->last_time) {
diff --git a/src/gallium/auxiliary/hud/hud_diskstat.c b/src/gallium/auxiliary/hud/hud_diskstat.c
index 44174d6..7eaaf35 100644
--- a/src/gallium/auxiliary/hud/hud_diskstat.c
+++ b/src/gallium/auxiliary/hud/hud_diskstat.c
@@ -115,11 +115,11 @@ get_file_values(const char *fn, struct stat_s *s)
 
    return ret;
 }
 
 static void
-query_dsi_load(struct hud_graph *gr)
+query_dsi_load(struct hud_graph *gr, struct pipe_context *pipe)
 {
    /* The framework calls us periodically, compensate for the
     * calling interval accordingly when reporting per second.
     */
    struct diskstat_info *dsi = gr->query_data;
diff --git a/src/gallium/auxiliary/hud/hud_nic.c b/src/gallium/auxiliary/hud/hud_nic.c
index 1de5705..b6c0d9e 100644
--- a/src/gallium/auxiliary/hud/hud_nic.c
+++ b/src/gallium/auxiliary/hud/hud_nic.c
@@ -169,11 +169,11 @@ query_nic_rssi(const struct nic_info *nic, uint64_t *leveldBm)
 
    close(sockfd);
 }
 
 static void
-query_nic_load(struct hud_graph *gr)
+query_nic_load(struct hud_graph *gr, struct pipe_context *pipe)
 {
    /* The framework calls us at a regular but indefined period,
     * not once per second, compensate the statistics accordingly.
     */
 
diff --git a/src/gallium/auxiliary/hud/hud_sensors_temp.c b/src/gallium/auxiliary/hud/hud_sensors_temp.c
index 4d3a11b..c26e7b9 100644
--- a/src/gallium/auxiliary/hud/hud_sensors_temp.c
+++ b/src/gallium/auxiliary/hud/hud_sensors_temp.c
@@ -152,11 +152,11 @@ find_sti_by_name(const char *n, unsigned int mode)
    }
    return 0;
 }
 
 static void
-query_sti_load(struct hud_graph *gr)
+query_sti_load(struct hud_graph *gr, struct pipe_context *pipe)
 {
    struct sensors_temp_info *sti = gr->query_data;
    uint64_t now = os_time_get();
 
    if (sti->last_time) {
-- 
2.7.4



More information about the mesa-dev mailing list