Re: [Mesa-dev] [PATCH] gallium/hud: add pipe context parameter to extra HUD queries

2018-02-12 Thread Marek Olšák
Reviewed-by: Marek Olšák 

Marek

On Mon, Feb 12, 2018 at 5:05 PM, Lucas Stach  wrote:
> Those have been missed when the new parameter was introduced, leading to
> incompatible pointer assignement warnings.
>
> Fixes: 3132afdf4c12 (gallium/hud: pass pipe_context explicitly to most 
> functions)
> CC: 
> Signed-off-by: Lucas Stach 
> ---
>  src/gallium/auxiliary/hud/hud_cpufreq.c  | 2 +-
>  src/gallium/auxiliary/hud/hud_diskstat.c | 2 +-
>  src/gallium/auxiliary/hud/hud_sensors_temp.c | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/auxiliary/hud/hud_cpufreq.c 
> b/src/gallium/auxiliary/hud/hud_cpufreq.c
> index f5b7c0f2eb49..78a660795c40 100644
> --- a/src/gallium/auxiliary/hud/hud_cpufreq.c
> +++ b/src/gallium/auxiliary/hud/hud_cpufreq.c
> @@ -91,7 +91,7 @@ get_file_value(const char *fn, uint64_t *KHz)
>  }
>
>  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;
>
> diff --git a/src/gallium/auxiliary/hud/hud_diskstat.c 
> b/src/gallium/auxiliary/hud/hud_diskstat.c
> index 44174d655db9..7eaaf35a7c7d 100644
> --- a/src/gallium/auxiliary/hud/hud_diskstat.c
> +++ b/src/gallium/auxiliary/hud/hud_diskstat.c
> @@ -117,7 +117,7 @@ get_file_values(const char *fn, struct stat_s *s)
>  }
>
>  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.
> diff --git a/src/gallium/auxiliary/hud/hud_sensors_temp.c 
> b/src/gallium/auxiliary/hud/hud_sensors_temp.c
> index 4d3a11b1c9c1..c26e7b9b2a70 100644
> --- a/src/gallium/auxiliary/hud/hud_sensors_temp.c
> +++ b/src/gallium/auxiliary/hud/hud_sensors_temp.c
> @@ -154,7 +154,7 @@ find_sti_by_name(const char *n, unsigned int mode)
>  }
>
>  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();
> --
> 2.15.1
>
> ___
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [PATCH] gallium/hud: add pipe context parameter to extra HUD queries

2018-02-12 Thread Lucas Stach
Those have been missed when the new parameter was introduced, leading to
incompatible pointer assignement warnings.

Fixes: 3132afdf4c12 (gallium/hud: pass pipe_context explicitly to most 
functions)
CC: 
Signed-off-by: Lucas Stach 
---
 src/gallium/auxiliary/hud/hud_cpufreq.c  | 2 +-
 src/gallium/auxiliary/hud/hud_diskstat.c | 2 +-
 src/gallium/auxiliary/hud/hud_sensors_temp.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/auxiliary/hud/hud_cpufreq.c 
b/src/gallium/auxiliary/hud/hud_cpufreq.c
index f5b7c0f2eb49..78a660795c40 100644
--- a/src/gallium/auxiliary/hud/hud_cpufreq.c
+++ b/src/gallium/auxiliary/hud/hud_cpufreq.c
@@ -91,7 +91,7 @@ get_file_value(const char *fn, uint64_t *KHz)
 }
 
 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;
 
diff --git a/src/gallium/auxiliary/hud/hud_diskstat.c 
b/src/gallium/auxiliary/hud/hud_diskstat.c
index 44174d655db9..7eaaf35a7c7d 100644
--- a/src/gallium/auxiliary/hud/hud_diskstat.c
+++ b/src/gallium/auxiliary/hud/hud_diskstat.c
@@ -117,7 +117,7 @@ get_file_values(const char *fn, struct stat_s *s)
 }
 
 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.
diff --git a/src/gallium/auxiliary/hud/hud_sensors_temp.c 
b/src/gallium/auxiliary/hud/hud_sensors_temp.c
index 4d3a11b1c9c1..c26e7b9b2a70 100644
--- a/src/gallium/auxiliary/hud/hud_sensors_temp.c
+++ b/src/gallium/auxiliary/hud/hud_sensors_temp.c
@@ -154,7 +154,7 @@ find_sti_by_name(const char *n, unsigned int mode)
 }
 
 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();
-- 
2.15.1

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev