vulkan/runtime: fixup assert with link_geom_stages

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 9308e8d90d ("vulkan: Add generic graphics and compute VkPipeline implementations")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34874>
This commit is contained in:
Lionel Landwerlin 2025-04-02 14:02:12 +03:00 committed by Marge Bot
parent a29d0cfaf0
commit 565ac1ee6a

View file

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