Skip to content

Commit

Permalink
hwdec_vulkan: enable AV1 support if available
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
philipl committed May 29, 2023
1 parent 0f37d72 commit bc28dce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions video/out/vulkan/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit bc28dce

Please sign in to comment.