From 7607aeefa68b150ec94dca7396f2f844111f03d2 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 27 Jan 2026 14:30:23 +0100 Subject: [PATCH] radv/video: Fix maxActiveReferencePictures for H265 decode Also change to use H265 constant for maxDpbSlots (both values for H264 and H265 are the same). Fixes: ee535aa0394 ("radv: video: rework maxActiveReferenceSlot/MaxDpbSlots") Reviewed-by: Benjamin Cheng Part-of: --- src/amd/vulkan/radv_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c index ad33cd32225..f309a10265b 100644 --- a/src/amd/vulkan/radv_video.c +++ b/src/amd/vulkan/radv_video.c @@ -950,8 +950,8 @@ radv_GetPhysicalDeviceVideoCapabilitiesKHR(VkPhysicalDevice physicalDevice, cons struct VkVideoDecodeH265CapabilitiesKHR *ext = vk_find_struct(pCapabilities->pNext, VIDEO_DECODE_H265_CAPABILITIES_KHR); - pCapabilities->maxDpbSlots = RADV_VIDEO_H264_MAX_DPB_SLOTS; - pCapabilities->maxActiveReferencePictures = RADV_VIDEO_H264_MAX_NUM_REF_FRAME; + pCapabilities->maxDpbSlots = RADV_VIDEO_H265_MAX_DPB_SLOTS; + pCapabilities->maxActiveReferencePictures = RADV_VIDEO_H265_MAX_NUM_REF_FRAME; /* for h265 on navi21+ separate dpb images should work */ if (radv_enable_tier2(pdev)) pCapabilities->flags |= VK_VIDEO_CAPABILITY_SEPARATE_REFERENCE_IMAGES_BIT_KHR;