From 565ac1ee6ad26ba222fafce52da18a8fa4e8976e Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 2 Apr 2025 14:02:12 +0300 Subject: [PATCH] vulkan/runtime: fixup assert with link_geom_stages Signed-off-by: Lionel Landwerlin Fixes: 9308e8d90d ("vulkan: Add generic graphics and compute VkPipeline implementations") Reviewed-by: Faith Ekstrand Part-of: --- src/vulkan/runtime/vk_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/runtime/vk_pipeline.c b/src/vulkan/runtime/vk_pipeline.c index f280f068159..9610112776c 100644 --- a/src/vulkan/runtime/vk_pipeline.c +++ b/src/vulkan/runtime/vk_pipeline.c @@ -1189,7 +1189,7 @@ vk_graphics_pipeline_compile_shaders(struct vk_device *device, /* Don't try to re-compile any fast-link shaders */ if (!(pipeline->base.flags & VK_PIPELINE_CREATE_2_LINK_TIME_OPTIMIZATION_BIT_EXT)) { - assert(partition[p + 1] == partition[p] + 1); + assert(ops->link_geom_stages || partition[p + 1] == partition[p] + 1); if (stages[partition[p]].shader != NULL) continue; }