frontends/va: fixed an av1 decoding image corruption issue.
authorRuijing Dong <ruijing.dong@amd.com>
Tue, 18 Oct 2022 20:33:42 +0000 (16:33 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Oct 2022 20:03:23 +0000 (20:03 +0000)
commitf939b3115710de58ac476dd40f21025517441155
treea0d47214963725784900f3a68c6410601b425084
parent5b49f8b025c749408ae647a2650a5d9cbcd85d8b
frontends/va: fixed an av1 decoding image corruption issue.

problem:
When playing back some clips with loop restoration parameters
enabled, the display image could be corrupted.

solution:
correct loop restoration unit size logic in vaapi interface.

CC: 22.2 <mesa-stable>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19146>
src/gallium/frontends/va/picture_av1.c