From dad8f65611bf7478a06ec3e979e7788a5d211ee8 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 28 Apr 2026 11:50:49 +0300 Subject: [PATCH] anv: fix null pointer access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reproduces with dEQP-VK.pipeline.no_queues.pipeline_binary.compute Signed-off-by: Lionel Landwerlin Fixes: 595889018a ("anv: implement VK_KHR_maintenance9") Reviewed-by: José Roberto de Souza Part-of: --- src/intel/vulkan/i915/anv_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/i915/anv_device.c b/src/intel/vulkan/i915/anv_device.c index 787dde32e80..f5ed23595c2 100644 --- a/src/intel/vulkan/i915/anv_device.c +++ b/src/intel/vulkan/i915/anv_device.c @@ -317,6 +317,7 @@ anv_i915_device_setup_context(struct anv_device *device, /* Check if client specified queue priority. */ const VkDeviceQueueGlobalPriorityCreateInfoKHR *queue_priority = + num_queues == 0 ? NULL : vk_find_struct_const(pCreateInfo->pQueueCreateInfos[0].pNext, DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_KHR);