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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to