From 38e29fe712dc3ba0774c483d19adf9ec6053cc55 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Mon, 9 Jan 2023 09:32:01 -0800 Subject: [PATCH] anv: Fix the size/aperture space debug printouts to consider _ccs_size. It's added in at anv_bo_vma_alloc_or_close(), so count it here too. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_batch_chain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index decc3740368..e4260327e4e 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -1840,10 +1840,11 @@ anv_queue_exec_locked(struct anv_queue *queue, (float)total_size_kb / 1024.0f); for (uint32_t i = 0; i < execbuf.bo_count; i++) { 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 + bo->size - 1, bo->size, bo->gem_handle, + bo->offset, bo->offset + size - 1, size, bo->gem_handle, (bo->flags & EXEC_OBJECT_CAPTURE) != 0, bo->name); } }