summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2023-05-29 14:44:33 -0700
committerPhilip Langdale <philipl@overt.org>2023-05-29 14:46:42 -0700
commitbc28dce303a4abcc8ec2f1fd941bc1bfd02e6f79 (patch)
treec308fc7364da91f01922b2cde63ed92d53cefc5b /video/out
parent0f37d72360a7d0e58100a6ecdfe7de165b8a8745 (diff)
downloadmpv-bc28dce303a4abcc8ec2f1fd941bc1bfd02e6f79.tar.bz2
mpv-bc28dce303a4abcc8ec2f1fd941bc1bfd02e6f79.tar.xz
hwdec_vulkan: enable AV1 support if available
AV1 support in Vulkan is extremely bleeding edge - to the point that the extension is not present in official Khronos releases, but it has a reserved identifier and we can look it up with a string literal for now. This will be skipped and ignored if the driver doesn't support it, so it's safe if/when the name changes later (it'll just never be activated in that case).
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vulkan/context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c
index 003515cf32..eb122d3a67 100644
--- a/video/out/vulkan/context.c
+++ b/video/out/vulkan/context.c
@@ -177,6 +177,8 @@ bool ra_vk_ctx_init(struct ra_ctx *ctx, struct mpvk_ctx *vk,
VK_KHR_VIDEO_DECODE_H264_EXTENSION_NAME,
VK_KHR_VIDEO_DECODE_H265_EXTENSION_NAME,
VK_KHR_VIDEO_QUEUE_EXTENSION_NAME,
+ // This is a literal string as it's not in the official headers yet.
+ "VK_MESA_video_decode_av1",
};
VkPhysicalDeviceDescriptorBufferFeaturesEXT descriptor_buffer_feature = {