vulkan/operation: use timeline semaphore fallback if sync2 not supported

gst_vulkan_operation_add_dependency_frame does not fall back to the
timeline semaphore implementation if VK_KHR_synchronization2 is compiled
in, but not supported by the driver.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6309>
This commit is contained in:
Chris Spencer 2024-02-22 12:26:33 +00:00 committed by GStreamer Marge Bot
parent 7701e9ffeb
commit 9412565221

View file

@ -1086,7 +1086,7 @@ gst_vulkan_operation_add_dependency_frame (GstVulkanOperation * self,
GST_OBJECT_UNLOCK (self);
return TRUE;
}
#else
#endif /* synchronization2 */
if (priv->has_timeline && wait_stage <= G_MAXUINT32) {
if (!priv->deps.signal_semaphores) {
priv->deps.signal_semaphores =
@ -1145,7 +1145,6 @@ gst_vulkan_operation_add_dependency_frame (GstVulkanOperation * self,
GST_OBJECT_UNLOCK (self);
return TRUE;
}
#endif /* synchronization2 */
GST_OBJECT_UNLOCK (self);
#endif /* timeline semaphore */