From b97a1e68706fa0b89d14dad3b7039a5486d680fc Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Tue, 10 Mar 2026 17:04:36 -0700 Subject: [PATCH] anv: avoid VK_STRUCTURE_TYPE_BIND_MEMORY_STATUS warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When running "./deqp-vk -n dEQP-VK.memory.binding.maintenance6*", we get tons of: MESA-INTEL: debug: anv_bind_image_memory: ignored VkStructureType VK_STRUCTURE_TYPE_BIND_MEMORY_STATUS(1000545002) The function does not ignore VK_STRUCTURE_TYPE_BIND_MEMORY_STATUS: it looks for it before the main pNext loop. The pNext loop we have there calls vk_debug_ignored_stype(), which complains about the fact that we, allegedly, ignore VK_STRUCTURE_TYPE_BIND_MEMORY_STATUS. Move the code where we find bind_status to the loop so it doesn't complain anymore. Reviewed-by: Iván Briano Signed-off-by: Paulo Zanoni Part-of: --- src/intel/vulkan/anv_image.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 94416d5c7c0..df4b8b560c5 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -2982,9 +2982,7 @@ anv_bind_image_memory(struct anv_device *device, ANV_FROM_HANDLE(anv_image, image, bind_info->image); bool did_bind = false; VkResult result = VK_SUCCESS; - - const VkBindMemoryStatusKHR *bind_status = - vk_find_struct_const(bind_info->pNext, BIND_MEMORY_STATUS_KHR); + const VkBindMemoryStatusKHR *bind_status = NULL; assert(!anv_image_is_sparse(image)); @@ -3085,6 +3083,10 @@ anv_bind_image_memory(struct anv_device *device, break; } #pragma GCC diagnostic pop + case VK_STRUCTURE_TYPE_BIND_MEMORY_STATUS_KHR: { + bind_status = (const VkBindMemoryStatusKHR *)s; + break; + } default: vk_debug_ignored_stype(s->sType); break;