From 67c0b7a529177eeb75e46c2ff803e35a88da4b1c Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 30 Oct 2025 17:50:08 +0100 Subject: [PATCH] vulkan/video: Add chroma subsampling to video session Reviewed-by: Benjamin Cheng Part-of: --- src/vulkan/runtime/vk_video.c | 1 + src/vulkan/runtime/vk_video.h | 1 + 2 files changed, 2 insertions(+) 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;