vulkan/video: Add chroma subsampling to video session

Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38158>
This commit is contained in:
David Rosca 2025-10-30 17:50:08 +01:00 committed by Marge Bot
parent 4d22427079
commit 67c0b7a529
2 changed files with 2 additions and 0 deletions

View file

@ -46,6 +46,7 @@ vk_video_session_init(struct vk_device *device,
vid->max_active_ref_pics = create_info->maxActiveReferencePictures;
vid->luma_bit_depth = create_info->pVideoProfile->lumaBitDepth;
vid->chroma_bit_depth = create_info->pVideoProfile->chromaBitDepth;
vid->chroma_subsampling = create_info->pVideoProfile->chromaSubsampling;
switch (vid->op) {
case VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR: {

View file

@ -83,6 +83,7 @@ struct vk_video_session {
VkVideoCodecOperationFlagsKHR op;
VkVideoComponentBitDepthFlagsKHR luma_bit_depth;
VkVideoComponentBitDepthFlagsKHR chroma_bit_depth;
VkVideoChromaSubsamplingFlagsKHR chroma_subsampling;
VkExtent2D max_coded;
VkFormat picture_format;
VkFormat ref_format;