radeon/vcn: enable dynamic dpb Tier1 support

For Raven and Navixx family i.e. VCN1 and VCN2 with VP9 codec

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8851>
This commit is contained in:
Leo Liu 2021-02-02 21:41:55 -05:00
parent b460c9b5d1
commit 57cb2fc88e

View file

@ -2341,6 +2341,11 @@ 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)
dec->dpb_type = DPB_DYNAMIC_TIER_1;
else
dec->dpb_type = DPB_MAX_RES;
return &dec->base;
error: