From 0d3ffd8275087bc7f5b872303338ab10dcf287d9 Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Wed, 30 Apr 2025 09:49:05 +0900 Subject: [PATCH] anv: enable the KHR_video_decode_vp9 extension Signed-off-by: Hyunjun Ko Acked-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_physical_device.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_physical_device.c b/src/intel/vulkan/anv_physical_device.c index 1dd34e00f04..85e12d9670f 100644 --- a/src/intel/vulkan/anv_physical_device.c +++ b/src/intel/vulkan/anv_physical_device.c @@ -261,6 +261,7 @@ get_device_extensions(const struct anv_physical_device *device, .KHR_video_decode_h264 = VIDEO_CODEC_H264DEC && video_decode_enabled, .KHR_video_decode_h265 = VIDEO_CODEC_H265DEC && video_decode_enabled, .KHR_video_decode_av1 = device->info.ver >= 12 && VIDEO_CODEC_AV1DEC && video_decode_enabled, + .KHR_video_decode_vp9 = VIDEO_CODEC_VP9DEC && video_decode_enabled, .KHR_video_encode_queue = video_encode_enabled, .KHR_video_encode_h264 = VIDEO_CODEC_H264ENC && video_encode_enabled, .KHR_video_encode_h265 = device->info.ver >= 12 && VIDEO_CODEC_H265ENC && video_encode_enabled, @@ -919,6 +920,9 @@ get_features(const struct anv_physical_device *pdevice, /* VK_KHR_video_maintenance2 */ .videoMaintenance2 = true, + /* VK_KHR_video_decode_vp9 */ + .videoDecodeVP9 = true, + /* VK_EXT_image_compression_control */ .imageCompressionControl = true, @@ -2926,7 +2930,8 @@ void anv_GetPhysicalDeviceQueueFamilyProperties2( (VkQueueFamilyVideoPropertiesKHR *)ext; if (queue_family->queueFlags & VK_QUEUE_VIDEO_DECODE_BIT_KHR) { prop->videoCodecOperations = VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR | - VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR; + VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR | + VK_VIDEO_CODEC_OPERATION_DECODE_VP9_BIT_KHR; if (pdevice->info.ver >= 12) prop->videoCodecOperations |= VK_VIDEO_CODEC_OPERATION_DECODE_AV1_BIT_KHR; }