From 1ad28db0f192e23e714ee3f462795c1686b170b9 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 (cherry picked from commit dad8f65611bf7478a06ec3e979e7788a5d211ee8) Part-of: --- .pick_status.json | 2 +- src/intel/vulkan/i915/anv_device.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 6e35e1b1500..09a308eb8c6 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2874,7 +2874,7 @@ "description": "anv: fix null pointer access", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "595889018ad4fa3e2c593a13d640c9eee26336c7", "notes": null diff --git a/src/intel/vulkan/i915/anv_device.c b/src/intel/vulkan/i915/anv_device.c index ecbe7663f1c..d9cdbdcceea 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);