From 168e26fc048954027e88001cf7fd0615d156b0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Thu, 15 Aug 2024 07:45:48 -0700 Subject: [PATCH] anv: Add trivial_batch and query-pool to the error capture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Those are batch buffers that are not allocated from batch_bo_pool, so they were left out of error capture without the capture-all parameter. Reviewed-by: Lionel Landwerlin Signed-off-by: José Roberto de Souza Part-of: --- src/intel/vulkan/anv_device.c | 3 ++- src/intel/vulkan/genX_query.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index f1c77727fad..3c2545ae62f 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -76,7 +76,8 @@ anv_device_init_trivial_batch(struct anv_device *device) VkResult result = anv_device_alloc_bo(device, "trivial-batch", 4096, ANV_BO_ALLOC_MAPPED | ANV_BO_ALLOC_HOST_COHERENT | - ANV_BO_ALLOC_INTERNAL, + ANV_BO_ALLOC_INTERNAL | + ANV_BO_ALLOC_CAPTURE, 0 /* explicit_address */, &device->trivial_batch_bo); if (result != VK_SUCCESS) diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c index 8188d03c31d..6d0d9945ab9 100644 --- a/src/intel/vulkan/genX_query.c +++ b/src/intel/vulkan/genX_query.c @@ -246,7 +246,8 @@ VkResult genX(CreateQueryPool)( result = anv_device_alloc_bo(device, "query-pool", size, ANV_BO_ALLOC_MAPPED | - ANV_BO_ALLOC_HOST_CACHED_COHERENT, + ANV_BO_ALLOC_HOST_CACHED_COHERENT | + ANV_BO_ALLOC_CAPTURE, 0 /* explicit_address */, &pool->bo); if (result != VK_SUCCESS)