]> git.sesse.net Git - ffmpeg/commitdiff
hwcontext_vulkan: optionally enable the VK_KHR_surface extension if available
authorLynne <dev@lynne.ee>
Sun, 10 May 2020 10:21:52 +0000 (11:21 +0100)
committerLynne <dev@lynne.ee>
Sun, 10 May 2020 10:23:10 +0000 (11:23 +0100)
This allows any phys_device derived to be used as a display rendering device.

libavutil/hwcontext_vulkan.c

index fa53d9d1215efb8eafb4582756b4a8be23610bb7..43e7cddbc5f6561a5c59499edc94f9f1fc267ac0 100644 (file)
@@ -187,7 +187,7 @@ typedef struct VulkanOptExtension {
 } VulkanOptExtension;
 
 static const VulkanOptExtension optional_instance_exts[] = {
-    /* For future use */
+    { VK_KHR_SURFACE_EXTENSION_NAME, EXT_OPTIONAL },
 };
 
 static const VulkanOptExtension optional_device_exts[] = {