Bug 100687 - KWin won't draw Aurorae themes under EGL
Summary: KWin won't draw Aurorae themes under EGL
Status: RESOLVED WONTFIX
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: 17.0
Hardware: Other All
: medium major
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-14 19:45 UTC by MirceaKitsune
Modified: 2018-06-14 14:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Screenshot (25.30 KB, image/png)
2017-04-14 19:45 UTC, MirceaKitsune
Details
Xorg.0.log (56.38 KB, text/plain)
2017-04-14 20:24 UTC, MirceaKitsune
Details
kwin_x11.txt (15.42 KB, text/plain)
2017-04-14 20:24 UTC, MirceaKitsune
Details
Output of "qdbus org.kde.KWin /KWin supportInformation" (6.69 KB, text/plain)
2017-04-14 20:25 UTC, MirceaKitsune
Details

Description MirceaKitsune 2017-04-14 19:45:51 UTC
Created attachment 130849 [details]
Screenshot

I initially reported this bug with openSUSE and the KDE teams. It was ultimately concluded that it's a problem with Mesa or the Radeon driver. As such I was encouraged to post about it here as well. Links to the other bug reports:

https://bugzilla.opensuse.org/show_bug.cgi?id=1033598
https://bugs.kde.org/show_bug.cgi?id=378663

In summary: This is a problem that affects Linux users running the KDE desktop. After a recent openSUSE Tumbleweed snapshot, I found that KWin no longer renders Aurorae themes. Other themes work fine however, and this only affects Aurorae ones... Plasma also has no issues rendering desktop elements. The problem happens both with and without desktop effects enabled.

The space where the titlebar and border should be becomes completely empty, with no graphics or text or buttons showing. However the blur effect is still functional in those areas, and clicking and dragging on any window component works correctly (even if they're invisible).

Today I found the culprit as well as a workaround, thanks to Martin Gräßlin in the same report on the KDE bug tracker. The issue only happens when using egl instead of glx as the backend of KWin. This can be modified by opening ~/.config/kwinrc in a text editor and changing:

GLPlatformInterface=egl

to

GLPlatformInterface=glx

Anyone with a Radeon card should be able to reproduce this, by doing the reverse of the above and switching their KDE desktop to egl. I understand the driver developers need to figure out what's breaking it, which hopefully won't be difficult using this test case.
Comment 1 MirceaKitsune 2017-04-14 20:24:36 UTC
Created attachment 130850 [details]
Xorg.0.log
Comment 2 MirceaKitsune 2017-04-14 20:24:57 UTC
Created attachment 130851 [details]
kwin_x11.txt
Comment 3 MirceaKitsune 2017-04-14 20:25:18 UTC
Created attachment 130852 [details]
Output of "qdbus org.kde.KWin /KWin supportInformation"
Comment 4 Michel Dänzer 2017-04-15 03:13:24 UTC
This doesn't happen with Mesa on non-AMD GPUs?

Does running kwin with LIBGL_DRI3_DISABLE=1 make a difference?
Comment 5 MirceaKitsune 2017-04-17 01:16:59 UTC
(In reply to Michel Dänzer from comment #4)

I temporarily set KWin back to egl and added the following to my ~./profile file:

export LIBGL_DRI3_DISABLE=1

This did not affect the problem: Window decorations are still completely invisible, when using egl over glx for rendering.
Comment 6 MirceaKitsune 2017-04-28 15:06:24 UTC
Still an issue in Mesa 17.0.4.
Comment 7 MirceaKitsune 2018-06-14 14:21:00 UTC
Closing this for now. I understand it was a deliberate decision of the KDE developers as EGL support has been disabled on X11. If the driver developers believe this can and should be fixed by the drivers, feel free to reopen.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.