Libreelec Display Corruption introduced in Mesa 22.3.0
Hi,
I have noticed an issue with Mesa version 22.3.0 and higher running on AMD APU/GPU. Running Libreelec nightly builds I noticed that graphic corruption appeared with Mesa 22.3.0. Reverting back to 22.2 fixes the problem.
https://github.com/LibreELEC/LibreELEC.tv/issues/7299
The current nightly build with Mesa 22.3.2 still has the issue. I have tried running Libreelec with the AMD5600G without a GPU and the issue is present. It is also present using the Radeon 6400.
It produces glitches / artifacts in the menu system and when playing video.
I have also recorded a Youtube video showing the issue.
Video corruption https://youtu.be/kBzyGiSPqiE
&
Menu corruption https://youtu.be/VvMdLIxYpP4
Below is the VAINFO from the build i'm running.
LibreELEC (community): nightly-20221230-44ac404 (Generic.x86_64) LibreELEC:~ # vainfo Trying display: drm libva info: VA-API version 1.16.0 libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_1_16 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.16 (libva 2.16.0) vainfo: Driver version: Mesa Gallium driver 22.3.2 for AMD Radeon RX 6400 (navi24, LLVM 15.0.6, DRM 3.49, 6.1.1) vainfo: Supported profile and entrypoints VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264Main : VAEntrypointVLD VAProfileH264High : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc
I'm not sure what might have been introduced in 22.3.0 but whatever it was it is still currently affecting AMD APU/GPU in Libreelec.