[FFmpeg-devel] [PATCH] hwcontext_vulkan: set Vulkan 1.4 as the maximum API version

Lynne dev at lynne.ee
Sun Apr 20 12:12:58 EEST 2025


The field represents the maximum Vulkan version that an application
supports. We do not have any code which require us to stay at 1.3.
This enables validation against 1.4, and enables all 1.4 features.
---
 libavutil/hwcontext_vulkan.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 42ffaadfe5..126e8906ba 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -1020,7 +1020,12 @@ static int create_instance(AVHWDeviceContext *ctx, AVDictionary *opts,
                                               LIBAVUTIL_VERSION_MINOR,
                                               LIBAVUTIL_VERSION_MICRO),
         .pEngineName        = "libavutil",
-        .apiVersion         = VK_API_VERSION_1_3,
+        .apiVersion         =
+#ifdef VK_API_VERSION_1_4
+                              VK_API_VERSION_1_4,
+#else
+                              VK_API_VERSION_1_3,
+#endif
         .engineVersion      = VK_MAKE_VERSION(LIBAVUTIL_VERSION_MAJOR,
                                               LIBAVUTIL_VERSION_MINOR,
                                               LIBAVUTIL_VERSION_MICRO),
-- 
2.49.0.395.g12beb8f557c


More information about the ffmpeg-devel mailing list