diff --git a/src/vulkan/runtime/vk_video.c b/src/vulkan/runtime/vk_video.c index 1942ed532ee..881e67c6528 100644 --- a/src/vulkan/runtime/vk_video.c +++ b/src/vulkan/runtime/vk_video.c @@ -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: { diff --git a/src/vulkan/runtime/vk_video.h b/src/vulkan/runtime/vk_video.h index de31d5e326e..41c8c9bb22e 100644 --- a/src/vulkan/runtime/vk_video.h +++ b/src/vulkan/runtime/vk_video.h @@ -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;