anv: fix null pointer access

Reproduces with dEQP-VK.pipeline.no_queues.pipeline_binary.compute

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 595889018a ("anv: implement VK_KHR_maintenance9")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41233>
This commit is contained in:
Lionel Landwerlin 2026-04-28 11:50:49 +03:00 committed by Marge Bot
parent da7ed1c576
commit dad8f65611

View file

@ -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);