Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#76019 - [mesa] 22.2.0-1 rendering breakage

Attached to Project: Arch Linux
Opened by Hanabishi (Hanabishi) - Monday, 26 September 2022, 12:11 GMT
Last edited by Toolybird (Toolybird) - Monday, 26 September 2022, 21:29 GMT
Task Type Bug Report
Category Packages: Testing
Status Assigned
Assigned To Laurent Carlier (lordheavy)
Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 21
Private No


testing/mesa 22.2.0-1 issues the rendering breakage for me. GPU is AMD Radeon RX 580.

KDE kwin (X11) struggle to render windows, disabling the compositor helps.
But other apps which use GPU rendering also suffer, e.g. Alacritty can't render text, Chromium just crashes at startup.
More interesting that Firefox works totally fine, because of custom WebRender I guess.
So I suspect this may be OpenGL breakage.

Downgrading to 22.1 solves teh issue.
Unfortunately there are no any errors or suspicious entries in the journal.

I trying to investigate which configs/setups/tweaks can affect the issue, but nothing seems to work by now.
Please suggest what else I can try and which debug output can be helpful.

Additional info:
* package version(s):
mesa 22.2.0-1
This task depends upon

Comment by Hanabishi (Hanabishi) - Monday, 26 September 2022, 13:17 GMT
Comment by Celeste (Coelacanthus) - Monday, 26 September 2022, 13:29 GMT
Same issue here, it seems most Qt app happened, some characters disappear (i.e. not render and left space).
With AMD Renoir/Cezanne iGPU,
in KDE Plasma 5.25.90 (a.k.a. 5.26 beta) Waylan
Downgrading to 22.1.7 workaround the problem.
Comment by Frederic Bezies (fredbezies) - Monday, 26 September 2022, 13:30 GMT
Seeing this breakage with Gnome too. Downgrading mesa was the fix I had to apply.
Comment by Alex (BS86) - Monday, 26 September 2022, 13:44 GMT
just to add, Navi (OpenGL: renderer: AMD Radeon RX 6750 XT (navy_flounder)) is also affected with KDE X11 (wayland untested)
Comment by Siegfried Metz (NiceGuy) - Monday, 26 September 2022, 14:00 GMT
The stability issues / concerns have already been mentioned at phoronix [1] on Sept. 20th. It seems that mesa-22.2.0 is a bit rushed. The official release notes warn, although included in every major new mesa release, that one should wait for the minor point release, which means 22.2.1.

In case more issues arrive, it would be a good time to consider downgrading if officially. That's up to the maintainer of course, I just wanted to point out, that 22.2.0 is a bit special, because there was no more update in about a month in the 22.2 branch after rc3 and then out of a sudden a stable release. This was also discussed on the mesa mailing list [2].

So, just a heads up, there might even be more issues.

Comment by Mika Attila (solvedsnake) - Monday, 26 September 2022, 14:45 GMT
Just to add more data, I'm also getting rendering glitches on a RX 580. Reverting to extra/multilib mesa fixes the issues.
Comment by George Rawlinson (rawlinsong) - Tuesday, 27 September 2022, 02:56 GMT
I can confirm that testing/mesa 22.2.0 is a bit munted.

Downgrading to 22.1.7 resolves all graphical issues.
Comment by Magnus Boman (katt) - Tuesday, 27 September 2022, 08:27 GMT
Vega 56 user here, downgrading was a must since KDE (Wayland) was very much broken with 22.2.0.
Comment by Sefa Eyeoglu (Scrumplex) - Tuesday, 27 September 2022, 10:47 GMT
It seems like disabling LTO for mesa fixes these issues. This bug was reported a few weeks ago upstream:

So setting

options=('debug' '!lto')

and adding

-D b_lto=false \

to the arch-meson call to disable LTO could be a temporary fix.
Comment by Abdullah Al-Hasani (abdukabda) - Tuesday, 27 September 2022, 12:45 GMT
Having the same issue on GNOME wayland running an RX 570, my GNOME shell and GNOME apps are almost entirely borked but other applications are running just fine.
Comment by Alex (BS86) - Tuesday, 27 September 2022, 16:14 GMT
I can confirm that the changes suggested by @scrumplex regarding lto lead to a working mesa 22.2 on my Navi GPU. Typing this while running a self-built non-lto mesa 22.2 based on the official PKGBUILD with only the 2 lto changes made.

If that can be a viable workaround for the packages is up to the maintainers to decide.
Comment by Matthew T. Hoare (Head_on_a_Stick) - Tuesday, 27 September 2022, 16:33 GMT
+1 under sway with a Ryzen 7 5850U/Cezanne. Foot (terminal) & Steam badly b0rked.
Comment by David Rubio Escares (Kodehawa) - Tuesday, 27 September 2022, 19:33 GMT
+1 under KDE. Everything is very borked, including the desktop environment itself and the rendering on VMs using virgl using an RX 480.
Comment by Curtis (foxcm2000) - Wednesday, 28 September 2022, 01:23 GMT
Running KDE on Wayland [not X11] with mesa 22.2 and AMD graphics (Radeon RX 6700) and I'm having the same bugs.
Comment by Andreas Radke (AndyRTR) - Wednesday, 28 September 2022, 15:20 GMT
I've disabled lto for a temporary fix in 22.2.0-2.
Comment by David Roth (V1del) - Wednesday, 28 September 2022, 15:35 GMT
The upstream bug report mentions that one can disable the d3d12 gallium driver as well, which might be a preferable approach?
Comment by Frederic Bezies (fredbezies) - Thursday, 06 October 2022, 15:32 GMT
No problem for me with version 22.2.0-2 using my Ryzen3 2200G GPU by default.
Comment by Rich (rlees85) - Monday, 17 October 2022, 20:29 GMT
Weirdly, Gnome (Wayland) seems fine for me on 22.2.1 however some games do not. StarCraft 2 in particular just flashes black and then insta-quits. 5700XT and rolling back to 22.1.7 fixes it.
Comment by Michael (michimussato) - Friday, 04 November 2022, 00:20 GMT
Hello. After upgrading mesa from 22.1.7-1 to 22.2.1-1, Houdini crashes. Downgrading back to 22.1.7-1 restores functionality.

Houdini crash report indicates mesa problems:

> [michael@pocket3 ~] $ cat /tmp/houdini_temp/crash.HFTNAII_START_v002_023_freestyle_010.michael_7016_log.txt
Crash report from michael; Houdini FX Version 19.5.303 [linux-x86_64-gcc9.3]
Uptime 92 seconds
Fri Nov 4 00:59:11 2022
Caught signal 6

Traceback from 7016 ThreadId=0x7f9774714ec0
AP_Interface::coreDumpChaser(UTsignalHandlerArg) <>
AP_Interface::si_CrashHandler::chaser(UTsignalHandlerArg) <>
signalCallback(UTsignalHandlerArg) <>
UT_Signal::UT_ComboSignalHandler::operator()(int, siginfo_t*, void*) const <>
UT_Signal::processSignal(int, siginfo_t*, void*) <>
__sigaction <>
pthread_key_delete <>
raise <>
abort <>
[0x98c1f] <>
nouveau_drm_screen_create <>
__driDriverGetExtensions_d3d12 <>
__driDriverGetExtensions_d3d12 <>
glPrimitiveBoundingBox <>
glAreTexturesResidentEXT <>
glIsTextureEXT <>
qt_plugin_instance <>
QOpenGLContext::swapBuffers(QSurface*) <>
RE_Server::GLSwapBuffers(RE_Window*) <>
UI_Window::swapBuffers() <>
UI_Window::doRedrawSubclass() <>
dm_ViewLayoutWindow::doRedrawSubclass() <>
UI_Window::doRedraw() <>
UI_Queue::doWindowRedraws() <>
UI_Queue::processNextEvent() <>
UI_Queue::drain() <>
UI_Queue::eventLoop() <>
main <>
__libc_init_first <>
__libc_start_main <>
main <houdini-bin>
Comment by Rich (rlees85) - Tuesday, 08 November 2022, 12:36 GMT
22.2.2 fixes it for me!
Comment by Alex (BS86) - Thursday, 24 November 2022, 10:53 GMT
just a heads up @lordheavy @felixonmars @AndyRTR
I compiled mesa-22.3.0-rc4 against staging with lto re-enabled. The original issue of rendering breakage still happens. lto disabled and the issue does not appear. Seems like this needs to stay for longer.