diff options
author | Eric Anholt <[email protected]> | 2015-11-04 13:10:28 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-11-04 13:32:07 -0800 |
commit | 3f7c96c36cb18a9e4616d373369a130416884bf9 (patch) | |
tree | b7e83bdd2df865ae93f3f09a5ea870e959e0850f /src/gallium/drivers | |
parent | 4a951f1c0847353101d28db583e1dd397fdce9ba (diff) |
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.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_bufmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c index 171a5544bea..52ba8ab19ef 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); } |