From beadc1f93a51d942cfa5d9d23045776cf7caf2f6 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 9 Aug 2025 12:48:25 +0200 Subject: [PATCH] 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 Part-of: --- src/intel/vulkan/i915/anv_batch_chain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/i915/anv_batch_chain.c b/src/intel/vulkan/i915/anv_batch_chain.c index 6a5a207c4b2..b4e5298535f 100644 --- a/src/intel/vulkan/i915/anv_batch_chain.c +++ b/src/intel/vulkan/i915/anv_batch_chain.c @@ -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); }