From ab8fef23e68f8511a98453fcffdb50e5890b88ca Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Thu, 5 Feb 2026 18:12:03 -0800 Subject: [PATCH] anv: Don't enumerate cooperative matrix configurations if disabled Instead of asserting, let's simply not enumerate any configuration if cooperative matrix is disabled. This can happen for example when neither systolic nor software lowering is being used. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_physical_device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_physical_device.c b/src/intel/vulkan/anv_physical_device.c index b6ff3c33e38..9b73f6ade85 100644 --- a/src/intel/vulkan/anv_physical_device.c +++ b/src/intel/vulkan/anv_physical_device.c @@ -3321,10 +3321,11 @@ VkResult anv_GetPhysicalDeviceCooperativeMatrixPropertiesKHR( ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice); const struct intel_device_info *devinfo = &pdevice->info; - assert(anv_has_cooperative_matrix(pdevice)); - VK_OUTARRAY_MAKE_TYPED(VkCooperativeMatrixPropertiesKHR, out, pProperties, pPropertyCount); + if (!anv_has_cooperative_matrix(pdevice)) + return vk_outarray_status(&out); + for (int i = 0; i < ARRAY_SIZE(devinfo->cooperative_matrix_configurations); i++) { const struct intel_cooperative_matrix_configuration *cfg = &devinfo->cooperative_matrix_configurations[i];