From e4decf6f396e34bea8d4c4efbeb78c01fadc259a Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Mon, 8 Feb 2021 08:37:45 -0500 Subject: [PATCH] radeon/vcn: enable dynamic dpb Tier2 support On VCN3 with codec AV1 and VP9 Signed-off-by: Leo Liu Reviewed-by: James Zhu Part-of: --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index de21f9d4932..02e141ac9e5 100644 --- a/src/gallium/drivers/radeon/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c @@ -2475,7 +2475,10 @@ struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context, else dec->send_cmd = send_cmd_dec; - if (sctx->family <= CHIP_NAVI14 && stream_type == RDECODE_CODEC_VP9) + if (sctx->family >= CHIP_SIENNA_CICHLID && + (stream_type == RDECODE_CODEC_VP9 || stream_type == RDECODE_CODEC_AV1)) + dec->dpb_type = DPB_DYNAMIC_TIER_2; + else if (sctx->family <= CHIP_NAVI14 && stream_type == RDECODE_CODEC_VP9) dec->dpb_type = DPB_DYNAMIC_TIER_1; else dec->dpb_type = DPB_MAX_RES;