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

Author: Leo Liu <[email protected]>
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 <[email protected]>
Reviewed-by: Boyuan Zhang <[email protected]>
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;

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

Reply via email to