vulkan: remove incorrect assert
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

You can have a group with 0 shaders in it.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 69a04151db ("vulkan/runtime: add ray tracing pipeline support")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13858
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37249>
This commit is contained in:
Lionel Landwerlin 2025-09-09 10:50:48 +03:00 committed by Marge Bot
parent e2181744c2
commit febe90e109

View file

@ -3046,7 +3046,6 @@ vk_create_rt_pipeline(struct vk_device *device,
.shader = vk_shader_ref(group_stages[s].shader), .shader = vk_shader_ref(group_stages[s].shader),
}; };
} }
assert(group->stage_count > 0);
qsort(group->stages, group->stage_count, sizeof(*group->stages), qsort(group->stages, group->stage_count, sizeof(*group->stages),
cmp_vk_rt_pipeline_stages); cmp_vk_rt_pipeline_stages);