Mesa (master): radeon/vcn: add AV1 dpb buffer size
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 17 19:38:28 UTC 2020
Module: Mesa
Branch: master
Commit: 9a46b1086fb35043166cf38f8e47304460eb214b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a46b1086fb35043166cf38f8e47304460eb214b
Author: Leo Liu <leo.liu at amd.com>
Date: Tue Nov 10 20:56:47 2020 -0500
radeon/vcn: add AV1 dpb buffer size
Just use the default size for now
Signed-off-by: Leo Liu <leo.liu at amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7596>
---
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 0c29b928905..2264d37915a 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_dec.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c
@@ -1404,6 +1404,11 @@ static unsigned calc_dpb_size(struct radeon_decoder *dec)
dpb_size = dpb_size * 3 / 2;
break;
+ case PIPE_VIDEO_FORMAT_AV1:
+ max_references = MAX2(max_references, 9);
+ dpb_size = 8192 * 4320 * 3 / 2 * max_references * 3 / 2;
+ break;
+
case PIPE_VIDEO_FORMAT_JPEG:
dpb_size = 0;
break;
More information about the mesa-commit
mailing list