radeon/vcn: enable dynamic dpb Tier2 support

On VCN3 with codec AV1 and VP9

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8916>
This commit is contained in:
Leo Liu 2021-02-08 08:37:45 -05:00
parent c7a481872e
commit e4decf6f39

View file

@ -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;