radeon/vcn: add AV1 dpb buffer size

Just use the default size for now

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7596>
This commit is contained in:
Leo Liu 2020-11-10 20:56:47 -05:00 committed by Marge Bot
parent 6230407e82
commit 9a46b1086f
1 changed files with 5 additions and 0 deletions

View File

@ -1404,6 +1404,11 @@ static unsigned calc_dpb_size(struct radeon_decoder *dec)
dpb_size = dpb_size * 3 / 2;
break;
case PIPE_VIDEO_FORMAT_AV1:
max_references = MAX2(max_references, 9);
dpb_size = 8192 * 4320 * 3 / 2 * max_references * 3 / 2;
break;
case PIPE_VIDEO_FORMAT_JPEG:
dpb_size = 0;
break;