Mesa (master): vc4: Print the rounded shader size in debug output.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Nov 5 00:18:10 UTC 2015
Module: Mesa
Branch: master
Commit: 3f7c96c36cb18a9e4616d373369a130416884bf9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f7c96c36cb18a9e4616d373369a130416884bf9
Author: Eric Anholt <eric at anholt.net>
Date: Wed Nov 4 13:10:28 2015 -0800
vc4: Print the rounded shader size in debug output.
It's surprising to see "0kb" printed for debug on short shaders, while
4kb alignment won't be suprising.
---
src/gallium/drivers/vc4/vc4_bufmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c
index 171a554..52ba8ab 100644
--- a/src/gallium/drivers/vc4/vc4_bufmgr.c
+++ b/src/gallium/drivers/vc4/vc4_bufmgr.c
@@ -428,7 +428,7 @@ vc4_bo_alloc_shader(struct vc4_screen *screen, const void *data, uint32_t size)
screen->bo_count++;
screen->bo_size += bo->size;
if (dump_stats) {
- fprintf(stderr, "Allocated shader %dkb:\n", size / 1024);
+ fprintf(stderr, "Allocated shader %dkb:\n", bo->size / 1024);
vc4_bo_dump_stats(screen);
}
More information about the mesa-commit
mailing list