radeon/vcn: increase encoder dpb size
authorThong Thai <thong.thai@amd.com>
Mon, 8 Nov 2021 19:09:10 +0000 (14:09 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 8 Dec 2021 03:27:42 +0000 (03:27 +0000)
commitad3ed91b1f888aeadc60cc66148b7d5cf612672c
treeda9c1acb1eed57a9c67c1ee88b9077c6e6819adc
parent31b033eec2f48c44f0011131b99e19e88eba4281
radeon/vcn: increase encoder dpb size

Base the number of reconstructed pictures the encoder allocates based on
the number of reference pictures to be used for encoding. Also move the
calculation and allocation of reconstructed pictures to VCN 1, from VCN
2.

v2: Add back the accidentally deleted
'two_pass_search_center_map_offset' (Boyuan)

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13915>
src/gallium/drivers/radeon/radeon_vcn_enc.c
src/gallium/drivers/radeon/radeon_vcn_enc.h
src/gallium/drivers/radeon/radeon_vcn_enc_1_2.c
src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c