From 0db2d13af1a7f04f8461691db062b9111efae6df Mon Sep 17 00:00:00 2001 From: Boyuan Zhang Date: Thu, 15 Feb 2024 14:00:52 -0500 Subject: [PATCH] radeonsi/vcn: only use multi slices reflist when available Some frontends interface doesn't provide ref pic lists for HEVC. Therefore ONLY enabling multislices reflist for frontends that support direct ref pic list by checking the flag. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10599 Cc: mesa-stable Signed-off-by: Boyuan Zhang Reviewed-by: Leo Liu Part-of: --- src/gallium/drivers/radeonsi/radeon_vcn_dec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c index c6fa84af78a..6d19d84c47f 100644 --- a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c @@ -307,15 +307,15 @@ static rvcn_dec_message_hevc_t get_h265_msg(struct radeon_decoder *dec, result.sps_info_flags |= pic->pps->sps->separate_colour_plane_flag << 8; if (((struct si_screen *)dec->screen)->info.family == CHIP_CARRIZO) result.sps_info_flags |= 1 << 9; - if (pic->UseRefPicList == true) + if (pic->UseRefPicList == true) { result.sps_info_flags |= 1 << 10; + result.sps_info_flags |= 1 << 12; + } if (pic->UseStRpsBits == true && pic->pps->st_rps_bits != 0) { result.sps_info_flags |= 1 << 11; result.st_rps_bits = pic->pps->st_rps_bits; } - result.sps_info_flags |= 1 << 12; - result.chroma_format = pic->pps->sps->chroma_format_idc; result.bit_depth_luma_minus8 = pic->pps->sps->bit_depth_luma_minus8; result.bit_depth_chroma_minus8 = pic->pps->sps->bit_depth_chroma_minus8;