From: Eric Anholt Date: Wed, 4 Nov 2015 21:13:39 +0000 (-0800) Subject: vc4: Fix dumping the size of BOs allocated/cached. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a951f1c0847353101d28db583e1dd397fdce9ba;p=mesa.git vc4: Fix dumping the size of BOs allocated/cached. 60MB of cached BOs are a lot less scary than 600MB. --- diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c index f7b41f5816d..171a5544bea 100644 --- a/src/gallium/drivers/vc4/vc4_bufmgr.c +++ b/src/gallium/drivers/vc4/vc4_bufmgr.c @@ -42,9 +42,9 @@ vc4_bo_dump_stats(struct vc4_screen *screen) struct vc4_bo_cache *cache = &screen->bo_cache; fprintf(stderr, " BOs allocated: %d\n", screen->bo_count); - fprintf(stderr, " BOs size: %dkb\n", screen->bo_size / 102); + fprintf(stderr, " BOs size: %dkb\n", screen->bo_size / 1024); fprintf(stderr, " BOs cached: %d\n", cache->bo_count); - fprintf(stderr, " BOs cached size: %dkb\n", cache->bo_size / 102); + fprintf(stderr, " BOs cached size: %dkb\n", cache->bo_size / 1024); if (!list_empty(&cache->time_list)) { struct vc4_bo *first = LIST_ENTRY(struct vc4_bo,