radeonsi/vcn: correct cropping for hevc case
authorRuijing Dong <ruijing.dong@amd.com>
Thu, 20 Apr 2023 15:22:31 +0000 (11:22 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Apr 2023 18:07:42 +0000 (18:07 +0000)
commitb07f575a91d200ef8ac7189b82b47394414c36bd
tree26d95d56cb2f290945e061d8a8832cb195ea16b8
parentfaf27fa0a29452d2ecf4345e59f0c3ce65dc665a
radeonsi/vcn: correct cropping for hevc case

reason:

corect cropping calculation error.

If no cropping from the external, then it will
need to calculate cropping size internally, the
padding size on left and top should be zero.

Cc: mesa-stable
Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7171
Reviewed-by: Thong Thai <thong.thai@amd.com>
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22758>
src/gallium/drivers/radeonsi/radeon_vcn_enc_1_2.c
src/gallium/drivers/radeonsi/radeon_vcn_enc_2_0.c