From 4687bd43d21a41cde0d0c2939dcb3530e091ab64 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 7 Nov 2025 12:59:10 -0800 Subject: [PATCH] vulkan: Fix incorrect assert You can have a group with 0 shaders in it. See also febe90e1092 ("vulkan: remove incorrect assert"). Fixes assertion failure while compiling fossils/q2rtx/q2rtx-rt-pipeline.976f4ab1c0fee975.1.foz on Intel platforms. Fixes: e05a9b77b6e ("vulkan/runtime: split rt shaders hashing from compile") Reviewed-by: Lionel Landwerlin Part-of: --- src/vulkan/runtime/vk_pipeline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vulkan/runtime/vk_pipeline.c b/src/vulkan/runtime/vk_pipeline.c index 28b5fbfa48d..d01c50a4245 100644 --- a/src/vulkan/runtime/vk_pipeline.c +++ b/src/vulkan/runtime/vk_pipeline.c @@ -3064,7 +3064,8 @@ vk_get_rt_pipeline_compile_info(struct vk_rt_pipeline_compile_info *info, group->stages, group->stage_count, group_linked_stages); - assert(group->stage_count > 0 && group->stage_count <= 3); + /* It is possible to have a group with 0 shaders. */ + assert(group->stage_count <= 3); } if (libs_info != NULL) {