Skip to content

radeonsi/uvd_enc: update to use correct padding size

nyanmisaka requested to merge nyanmisaka/mesa:hevc_size_issue_uvd into main

What does this MR do and why?

radeonsi/uvd_enc: update to use correct padding size

Update padding size calculation to use cropping.
Original method could result in 0 padding, which
generated unnessary noise in the encoding result.

Cc: mesa-stable
Fixes: mesa/mesa#9196

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28369>

As requested in !28280 (comment 2333190)

Edited by nyanmisaka

Merge request reports