diff options
author | Philip Langdale <philipl@overt.org> | 2023-05-29 14:44:33 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2023-05-29 14:46:42 -0700 |
commit | bc28dce303a4abcc8ec2f1fd941bc1bfd02e6f79 (patch) | |
tree | c308fc7364da91f01922b2cde63ed92d53cefc5b /video/out | |
parent | 0f37d72360a7d0e58100a6ecdfe7de165b8a8745 (diff) | |
download | mpv-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.c | 2 |
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 = { |