anv/i915: print bo->map when dumping exec buffers bos

This makes it easier to verify if the host allocation a user-ptr bo is
assigned to still exists. The kernel rejects command submissions with
user-ptr bos pointing to non-mapped host memory, so this makes it easier
to debug those.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36701>
This commit is contained in:
Karol Herbst
2025-08-09 12:48:25 +02:00
committed by Marge Bot
parent e31d5bc5a9
commit beadc1f93a
+2 -2
View File
@@ -714,9 +714,9 @@ anv_i915_debug_submit(const struct anv_execbuf *execbuf)
for (uint32_t i = 0; i < execbuf->bo_count; i++) {
const struct anv_bo *bo = execbuf->bos[i];
fprintf(stderr, " BO: addr=0x%016"PRIx64"-0x%016"PRIx64" size=%7"PRIu64
fprintf(stderr, " BO: addr=0x%016"PRIx64"-0x%016"PRIx64" map=%16p size=%7"PRIu64
"KB handle=%05u capture=%u vram_only=%u name=%s\n",
bo->offset, bo->offset + bo->size - 1, bo->size / 1024,
bo->offset, bo->offset + bo->size - 1, bo->map, bo->size / 1024,
bo->gem_handle, (bo->flags & EXEC_OBJECT_CAPTURE) != 0,
anv_bo_is_vram_only(bo), bo->name);
}