From bc28dce303a4abcc8ec2f1fd941bc1bfd02e6f79 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Mon, 29 May 2023 14:44:33 -0700 Subject: 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). --- video/out/vulkan/context.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') 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 = { -- cgit v1.2.3