aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/hwcontext_vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2023-04-29 12:41:53 +0200
committerLynne <dev@lynne.ee>2023-05-29 00:41:37 +0200
commit2a1fd2814f7c92a9c10b58ff584381da64a57189 (patch)
tree4d7daaf755e50e4d87fac5ea40a470e159b13b79 /libavutil/hwcontext_vulkan.c
parent74b202b8395e7ce7150a51d682c342dbd83262bc (diff)
downloadffmpeg-2a1fd2814f7c92a9c10b58ff584381da64a57189.tar.gz
hwcontext_vulkan: use portability subset if available
Diffstat (limited to 'libavutil/hwcontext_vulkan.c')
-rw-r--r--libavutil/hwcontext_vulkan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index ae28a11093..2434a80090 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -340,11 +340,13 @@ typedef struct VulkanOptExtension {
} VulkanOptExtension;
static const VulkanOptExtension optional_instance_exts[] = {
- /* For future use */
+ /* Pointless, here avoid zero-sized structs */
+ { VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME, FF_VK_EXT_NO_FLAG },
};
static const VulkanOptExtension optional_device_exts[] = {
/* Misc or required by other extensions */
+ { VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME, FF_VK_EXT_NO_FLAG },
{ VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME, FF_VK_EXT_NO_FLAG },
{ VK_KHR_SAMPLER_YCBCR_CONVERSION_EXTENSION_NAME, FF_VK_EXT_NO_FLAG },