From 10cff5e1ae55406799f4b0ad6b327d4c45dbca11 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 7 Jul 2015 13:17:01 -0600 Subject: gallium/hud: display percentages with % suffix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/gallium/auxiliary/hud/hud_context.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/auxiliary') 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]; -- cgit v1.2.3