zink: allow vk 1.2 timelineSemaphore feature if extension isn't supported

this is a weird case but whatever

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22760>
This commit is contained in:
Mike Blumenkrantz 2023-04-28 09:50:28 -04:00 committed by Marge Bot
parent 421546c60d
commit e205a4839b

View File

@ -2852,7 +2852,7 @@ zink_internal_create_screen(const struct pipe_screen_config *config)
}
zink_internal_setup_moltenvk(screen);
if (!screen->info.have_KHR_timeline_semaphore) {
if (!screen->info.have_KHR_timeline_semaphore && !screen->info.feats12.timelineSemaphore) {
mesa_loge("zink: KHR_timeline_semaphore is required");
goto fail;
}