From 3f12103be96563d857445a0f5c9439adb9173899 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 31 May 2023 12:54:53 +1000 Subject: [PATCH] radv/video: fix hevc st rps programming These needs to be programmed to fix some video glitches. Reviewed-by: Lynne Part-of: --- src/amd/vulkan/radv_video.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c index fbc89b54901..991f9c296d3 100644 --- a/src/amd/vulkan/radv_video.c +++ b/src/amd/vulkan/radv_video.c @@ -895,6 +895,11 @@ static rvcn_dec_message_hevc_t get_h265_msg(struct radv_device *device, if (device->physical_device->rad_info.family == CHIP_CARRIZO) result.sps_info_flags |= 1 << 9; + if (!h265_pic_info->pStdPictureInfo->flags.short_term_ref_pic_set_sps_flag) { + result.sps_info_flags |= 1 << 11; + } + result.st_rps_bits = h265_pic_info->pStdPictureInfo->NumBitsForSTRefPicSetInSlice; + result.chroma_format = sps->chroma_format_idc; result.bit_depth_luma_minus8 = sps->bit_depth_luma_minus8; result.bit_depth_chroma_minus8 = sps->bit_depth_chroma_minus8;