From 22f71dbf7976d1803940bc2a0429c3d302dae9fa Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Thu, 12 Mar 2015 16:24:57 -0400 Subject: [PATCH] radeon/uvd: make 30M as minimum for MPEG4 dpb buffer size MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Leo Liu Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_uvd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index 7b0eb1110d3..375b5c06e12 100644 --- a/src/gallium/drivers/radeon/radeon_uvd.c +++ b/src/gallium/drivers/radeon/radeon_uvd.c @@ -304,6 +304,8 @@ static unsigned calc_dpb_size(struct ruvd_decoder *dec) // IT surface buffer dpb_size += align(width_in_mb * height_in_mb * 32, 64); + + dpb_size = MAX2(dpb_size, 30 * 1024 * 1024); break; default: -- 2.30.2