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.
This commit is contained in:
Eric Anholt 2015-11-04 13:10:28 -08:00
parent 4a951f1c08
commit 3f7c96c36c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}