mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
vulkan: Fix incorrect assert
You can have a group with 0 shaders in it. See alsofebe90e109("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:
parent
82d944b388
commit
4687bd43d2
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue