<div dir="ltr"><div>Forgot this one.<br></div>I will resend correctly, just trying to understand how git-format-patch and git-send-mail works...<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-04 20:18 GMT+02:00 Benjamin Bellec <span dir="ltr"><<a href="mailto:b.bellec@gmail.com" target="_blank">b.bellec@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Benjamin Bellec <<a href="mailto:b.bellec@gmail.com">b.bellec@gmail.com</a>><br>
---<br>
src/gallium/drivers/radeon/r600_pipe_common.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c<br>
index ed5d1da..2a8d906 100644<br>
--- a/src/gallium/drivers/radeon/r600_pipe_common.c<br>
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c<br>
@@ -722,7 +722,7 @@ static int r600_get_driver_query_info(struct pipe_screen *screen,<br>
{"VRAM-usage", R600_QUERY_VRAM_USAGE, {rscreen->info.vram_size}, PIPE_DRIVER_QUERY_TYPE_BYTES},<br>
{"GTT-usage", R600_QUERY_GTT_USAGE, {rscreen->info.gart_size}, PIPE_DRIVER_QUERY_TYPE_BYTES},<br>
{"GPU-load", R600_QUERY_GPU_LOAD, {100}},<br>
- {"temperature", R600_QUERY_GPU_TEMPERATURE, {100}},<br>
+ {"temperature", R600_QUERY_GPU_TEMPERATURE, {125}},<br>
{"shader-clock", R600_QUERY_CURRENT_GPU_SCLK, {0}, PIPE_DRIVER_QUERY_TYPE_HZ},<br>
{"memory-clock", R600_QUERY_CURRENT_GPU_MCLK, {0}, PIPE_DRIVER_QUERY_TYPE_HZ},<br>
};<br>
--<br>
2.4.3<br>
<br>
<br>
>From 87a3e9a0fca72facb840d8c450fe9755b41e3b83 Mon Sep 17 00:00:00 2001<br>
From: Benjamin Bellec <<a href="mailto:b.bellec@gmail.com">b.bellec@gmail.com</a>><br>
Date: Fri, 4 Sep 2015 20:02:23 +0200<br>
Subject: [PATCH v2 2/2] gallium/hud: display the temperature unit<br>
To: <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
Cc: <a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a><br>
<br>
Signed-off-by: Benjamin Bellec <<a href="mailto:b.bellec@gmail.com">b.bellec@gmail.com</a>><br>
---<br>
src/gallium/auxiliary/hud/hud_context.c | 4 ++++<br>
1 file changed, 4 insertions(+)<br>
<br>
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c<br>
index 95eed26..71529bc 100644<br>
--- a/src/gallium/auxiliary/hud/hud_context.c<br>
+++ b/src/gallium/auxiliary/hud/hud_context.c<br>
@@ -243,6 +243,7 @@ number_to_human_readable(uint64_t num, uint64_t max_value,<br>
static const char *hz_units[] =<br>
{" Hz", " KHz", " MHz", " GHz"};<br>
static const char *percent_units[] = {"%"};<br>
+ static const char *temperature_units[] = {"C"};<br>
<br>
const char **units;<br>
unsigned max_unit;<br>
@@ -271,6 +272,9 @@ number_to_human_readable(uint64_t num, uint64_t max_value,<br>
if (max_value == 100) {<br>
max_unit = ARRAY_SIZE(percent_units)-1;<br>
units = percent_units;<br>
+ } else if (max_value == 125) {<br>
+ max_unit = ARRAY_SIZE(temperature_units)-1;<br>
+ units = temperature_units;<br>
} else {<br>
max_unit = ARRAY_SIZE(metric_units)-1;<br>
units = metric_units;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.4.3<br>
<br>
</font></span></blockquote></div><br></div>