From c12fa4bf8bd1aa95857127872556f9287d73d22a Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sun, 16 Nov 2025 11:26:38 +0200 Subject: [PATCH] vulkan/runtime: fix incorrect assert on empty shader groups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Fixes: e05a9b77b6 ("vulkan/runtime: split rt shaders hashing from compile") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14278 Reviewed-by: Tapani Pälli Part-of: --- src/vulkan/runtime/vk_pipeline.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/vulkan/runtime/vk_pipeline.c b/src/vulkan/runtime/vk_pipeline.c index d01c50a4245..6c4e8045c78 100644 --- a/src/vulkan/runtime/vk_pipeline.c +++ b/src/vulkan/runtime/vk_pipeline.c @@ -3086,8 +3086,6 @@ vk_get_rt_pipeline_compile_info(struct vk_rt_pipeline_compile_info *info, struct vk_rt_shader_group *lib_rt_group = &lib_rt_pipeline->groups[g]; struct vk_rt_group_compile_info *group = &info->groups[group_index++]; - assert(lib_rt_group->stage_count > 0); - *group = (struct vk_rt_group_compile_info) { .type = lib_rt_group->type, .stage_count = lib_rt_group->stage_count, @@ -3097,7 +3095,6 @@ vk_get_rt_pipeline_compile_info(struct vk_rt_pipeline_compile_info *info, group->stages[s] = vk_pipeline_stage_from_rt_stage(&lib_rt_group->stages[s]); } - assert(group->stage_count > 0); } assert(group_index <= info->group_count); }