summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/auxiliary/hud/hud_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index cb552208d18..bd571907f2f 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -255,6 +255,9 @@ number_to_human_readable(uint64_t num, enum pipe_driver_query_type type,
assert(unit < ARRAY_SIZE(time_units));
suffix = time_units[unit];
break;
+ case PIPE_DRIVER_QUERY_TYPE_PERCENTAGE:
+ suffix = "%";
+ break;
case PIPE_DRIVER_QUERY_TYPE_BYTES:
assert(unit < ARRAY_SIZE(byte_units));
suffix = byte_units[unit];