vulkan/runtime: fix incorrect assert on empty shader groups

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: e05a9b77b6 ("vulkan/runtime: split rt shaders hashing from compile")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14278
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38466>
This commit is contained in:
Lionel Landwerlin 2025-11-16 11:26:38 +02:00 committed by Marge Bot
parent 3abb2707e2
commit c12fa4bf8b

View file

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