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

Author: Leo Liu <[email protected]>
Date:   Tue Feb  2 21:41:55 2021 -0500

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 <[email protected]>
Reviewed-by: Boyuan Zhang <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8851>

---

 src/gallium/drivers/radeon/radeon_vcn_dec.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c 
b/src/gallium/drivers/radeon/radeon_vcn_dec.c
index 1c36ff063db..edc091a771b 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_dec.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c
@@ -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:

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to