summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2018-03-13 09:42:57 -0400
committerLeo Liu <[email protected]>2018-04-12 11:15:12 -0400
commiteb22785bd831e775fd23f0b0c1748c100ae7357d (patch)
treeb1ac4a4f96e63fa7df7a0ec2ad5fe7bf5efd1dfe /src
parentf73befdd9bda4b8380d29a9a1f3c22efc65ea485 (diff)
radeon/vcn: add VP9 dpb buffer size
The current FW has restricted the size to the worse case, and the new dynamic dpb buffer support is on the way from firmware side, we will change accordingly. Signed-off-by: Leo Liu <[email protected]> Acked-by: Christian König <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeon/radeon_vcn_dec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c
index ba65452f69d..b7cb8a3650e 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_dec.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c
@@ -1019,6 +1019,12 @@ static unsigned calc_dpb_size(struct radeon_decoder *dec)
dpb_size = MAX2(dpb_size, 30 * 1024 * 1024);
break;
+ case PIPE_VIDEO_FORMAT_VP9:
+ max_references = MAX2(max_references, 9);
+
+ dpb_size = (4096 * 3000 * 3 / 2) * max_references;
+ break;
+
default:
// something is missing here
assert(0);