vulkan: Fix 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. See also febe90e109
("vulkan: remove incorrect assert"). Fixes assertion failure while
compiling fossils/q2rtx/q2rtx-rt-pipeline.976f4ab1c0fee975.1.foz on
Intel platforms.

Fixes: e05a9b77b6 ("vulkan/runtime: split rt shaders hashing from compile")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38318>
This commit is contained in:
Ian Romanick 2025-11-07 12:59:10 -08:00 committed by Marge Bot
parent 82d944b388
commit 4687bd43d2

View file

@ -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) {