From: Brian Paul Date: Tue, 7 Jul 2015 19:17:01 +0000 (-0600) Subject: gallium/hud: display percentages with % suffix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10cff5e1ae55406799f4b0ad6b327d4c45dbca11;p=mesa.git gallium/hud: display percentages with % suffix Reviewed-by: Marek Olšák --- 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];