diff options
author | Leo Liu <[email protected]> | 2015-03-12 16:24:57 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-08-14 15:02:30 +0200 |
commit | 22f71dbf7976d1803940bc2a0429c3d302dae9fa (patch) | |
tree | e1d4817b1001d755012482cdec157919fb7096e0 /src/gallium/drivers/radeon | |
parent | baecc518c9adcd073e725268421a049dd610d22f (diff) |
radeon/uvd: make 30M as minimum for MPEG4 dpb buffer size
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_uvd.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |