aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/hwcontext_vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-12-24 13:59:40 +0900
committerLynne <dev@lynne.ee>2025-01-03 14:53:37 +0900
commitd9b773c22f93825fb36d003cbec6e8d1d95540b2 (patch)
tree4762936f9a402e1656d713903707e5de324c5f3b /libavutil/hwcontext_vulkan.c
parentb22ce90d4228d1cb7727775cc848613ac31b97e9 (diff)
downloadffmpeg-d9b773c22f93825fb36d003cbec6e8d1d95540b2.tar.gz
hwcontext_vulkan: add VK_EXT_layer_settings to optional instance extensions
The issue is that some compilers complain if a struct or array is empty. This extension does nothing by default, and can be useful, so just add it to keep the array non-empty.
Diffstat (limited to 'libavutil/hwcontext_vulkan.c')
-rw-r--r--libavutil/hwcontext_vulkan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index bc7c258ebb..c5f4de5684 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -582,6 +582,7 @@ typedef struct VulkanOptExtension {
} VulkanOptExtension;
static const VulkanOptExtension optional_instance_exts[] = {
+ { VK_EXT_LAYER_SETTINGS_EXTENSION_NAME, FF_VK_EXT_NO_FLAG },
#ifdef __APPLE__
{ VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME, FF_VK_EXT_NO_FLAG },
#endif