radeonsi/vcn: AV1 skip the redundant bs resize
authorLeo Liu <leo.liu@amd.com>
Tue, 18 Apr 2023 15:49:49 +0000 (11:49 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Apr 2023 14:43:55 +0000 (14:43 +0000)
commite6701f723147c45798584ba77da7095f2317684c
treebe6fe786bc370865037efbdba0e8eb1b5279b850
parentd44651bfc3c8f6cb6aba8914f5bd21e440d69a4c
radeonsi/vcn: AV1 skip the redundant bs resize

For AV1, the begin bitstream buffer have included all the tile data,
and extra bitstream buffer is useless and causing the bad performance
by bs buffer resize/map/copy.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Veerabadhran Gopalakrishnan <veerabadhran.gopalakrishnan@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22557>
src/gallium/drivers/radeonsi/radeon_vcn_dec.c