anv: Print the BO sizes in KB instead of hex bytes.

We already show the address range, which is most of why I'd think you'd be
looking at hex values.  I find a more human-readable number nice for
debugging, instead of counting zeroes to decide if it's 1.5MB or 96kb.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20540>
This commit is contained in:
Emma Anholt
2023-01-05 13:34:25 -08:00
committed by Marge Bot
parent 38e29fe712
commit 1aa163ebb5

View File

@@ -1842,9 +1842,9 @@ anv_queue_exec_locked(struct anv_queue *queue,
const struct anv_bo *bo = execbuf.bos[i];
uint64_t size = bo->size + bo->_ccs_size;
fprintf(stderr, " BO: addr=0x%016"PRIx64"-0x%016"PRIx64" size=0x%010"PRIx64
" handle=%05u capture=%u name=%s\n",
bo->offset, bo->offset + size - 1, size, bo->gem_handle,
fprintf(stderr, " BO: addr=0x%016"PRIx64"-0x%016"PRIx64" size=%7"PRIu64
"KB handle=%05u capture=%u name=%s\n",
bo->offset, bo->offset + size - 1, size / 1024, bo->gem_handle,
(bo->flags & EXEC_OBJECT_CAPTURE) != 0, bo->name);
}
}