mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
radeon/uvd: make 30M as minimum for MPEG4 dpb buffer size
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
baecc518c9
commit
22f71dbf79
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue