From 5acd6c23b8db8773feed5e1adfdc3b3328d4d94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 27 Jun 2023 16:35:36 +0200 Subject: [PATCH] vkdevice: use macro VK_KHR_synchronization2 as guard Instead of (defined(VK_VERSION_1_3) || (defined(VK_VERSION_1_2) && VK_HEADER_VERSION >= 170)) Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdevice.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdevice.c index 67032b35b5..dcf6b7c12e 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdevice.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdevice.c @@ -180,7 +180,7 @@ gst_vulkan_device_constructed (GObject * object) const char *optional_extensions[] = { VK_KHR_SWAPCHAIN_EXTENSION_NAME, VK_KHR_SAMPLER_YCBCR_CONVERSION_EXTENSION_NAME, -#if (defined(VK_VERSION_1_3) || (defined(VK_VERSION_1_2) && VK_HEADER_VERSION >= 170)) +#if defined(VK_KHR_synchronization2) VK_KHR_SYNCHRONIZATION_2_EXTENSION_NAME, #endif #if GST_VULKAN_HAVE_VIDEO_EXTENSIONS