From: Leo Liu Date: Thu, 12 Mar 2015 20:24:57 +0000 (-0400) Subject: radeon/uvd: make 30M as minimum for MPEG4 dpb buffer size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22f71dbf7976d1803940bc2a0429c3d302dae9fa;p=mesa.git radeon/uvd: make 30M as minimum for MPEG4 dpb buffer size Signed-off-by: Leo Liu Reviewed-by: Christian König --- 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: