summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-07-07 13:17:01 -0600
committerBrian Paul <[email protected]>2015-07-07 13:21:20 -0600
commit10cff5e1ae55406799f4b0ad6b327d4c45dbca11 (patch)
tree81c3008abfa6bf45b42e2955598c84331ca57f03 /src/gallium
parenta804f5824352e4f714779bd9445c09b66d54bc4a (diff)
gallium/hud: display percentages with % suffix
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-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];