summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Liu <leo.liu@amd.com>2021-02-02 21:41:55 -0500
committerLeo Liu <leo.liu@amd.com>2021-02-05 09:22:52 -0500
commit57cb2fc88e1708687b7468cac9210410a72185de (patch)
treec066f692c6871ef21eaf0aa2f8fac3cf84cf461d
parentb460c9b5d13c351972c755b03832dfeacd0f2b79 (diff)
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>
-rw-r--r--src/gallium/drivers/radeon/radeon_vcn_dec.c5
1 files changed, 5 insertions, 0 deletions
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: