Mesa (master): radeon/vcn: enable dynamic dpb Tier2 support

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 9 14:47:48 UTC 2021


Module: Mesa
Branch: master
Commit: e4decf6f396e34bea8d4c4efbeb78c01fadc259a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e4decf6f396e34bea8d4c4efbeb78c01fadc259a

Author: Leo Liu <leo.liu at amd.com>
Date:   Mon Feb  8 08:37:45 2021 -0500

radeon/vcn: enable dynamic dpb Tier2 support

On VCN3 with codec AV1 and VP9

Signed-off-by: Leo Liu <leo.liu at amd.com>
Reviewed-by: James Zhu <James.Zhu at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8916>

---

 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;



More information about the mesa-commit mailing list