vulkan/operation: fix timeline semaphore extension detection
As for synchronization2, the timeline semaphore has been been promoted in 1.2 and does not have to be enabled explicitely. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8554>
This commit is contained in:
parent
b9bbcf9202
commit
93364189d0
@ -167,7 +167,8 @@ _vk_image_mem_new_alloc_with_image_info (GstAllocator * allocator,
|
|||||||
mem->image = image;
|
mem->image = image;
|
||||||
|
|
||||||
#if defined(VK_KHR_timeline_semaphore)
|
#if defined(VK_KHR_timeline_semaphore)
|
||||||
if (gst_vulkan_device_is_extension_enabled (device,
|
if (gst_vulkan_physical_device_check_api_version (device->physical_device, 1,
|
||||||
|
2, 0) || gst_vulkan_device_is_extension_enabled (device,
|
||||||
VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME)) {
|
VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME)) {
|
||||||
VkSemaphoreTypeCreateInfo semaphore_type_info = {
|
VkSemaphoreTypeCreateInfo semaphore_type_info = {
|
||||||
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO,
|
||||||
|
@ -197,7 +197,10 @@ gst_vulkan_operation_constructed (GObject * object)
|
|||||||
priv->has_video_maintenance1 = gst_vulkan_video_has_maintenance1 (device);
|
priv->has_video_maintenance1 = gst_vulkan_video_has_maintenance1 (device);
|
||||||
#endif
|
#endif
|
||||||
#if defined(VK_KHR_timeline_semaphore)
|
#if defined(VK_KHR_timeline_semaphore)
|
||||||
priv->has_timeline = gst_vulkan_device_is_extension_enabled (device,
|
priv->has_timeline =
|
||||||
|
gst_vulkan_physical_device_check_api_version (device->physical_device, 1,
|
||||||
|
2, 0)
|
||||||
|
|| gst_vulkan_device_is_extension_enabled (device,
|
||||||
VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME);
|
VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user