mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
anv: enable the KHR_video_decode_vp9 extension
Signed-off-by: Hyunjun Ko <zzoon@igalia.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35485>
This commit is contained in:
parent
314de7af06
commit
0d3ffd8275
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue