Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610892 - kde-frameworks/plasma-5.31.0 with USE=wayland should also require USE=egl
Summary: kde-frameworks/plasma-5.31.0 with USE=wayland should also require USE=egl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL: https://blog.martin-graesslin.com/blo...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-25 14:27 UTC by Martijn Schmidt
Modified: 2017-03-19 00:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martijn Schmidt 2017-02-25 14:27:43 UTC
Hi KDE team,

If kde-frameworks/plasma is compiled with USE=wayland and USE=-egl, the Plasma Wayland session has all kinds of weird graphical artifacts that essentially make the session unusable compared to what it's like on Xorg.

After looking around on the blog of the lead Wayland developer for KDE Plasma, it turns out that the upstream only supports EGL for Wayland while strongly recommending GLX for Xorg. Using EGL in Wayland still allows one to use OpenGL for the compositor, OpenGL ES 2 is not required.

After re-compiling with USE=egl, USE=wayland, and USE=-gles2 set in /etc/portage/make.conf the problems with Plasma Wayland are gone and the legacy Xorg session is still usable.

Quoting from Martin's blog:

"A change which also got backported to a 5.7 bugfix release is the removal of the selection of GLX or EGL in the compositor settings. Unfortunately EGL is still not a good enough option on X11. Way too often we saw bug reports about rendering being broken and it was caused by using EGL. We decided that it doesn’t make sense to expose a config option which in most cases will result in the users systems being broken. So on X11 the default will stay GLX, while on Wayland the only option is EGL. Of course on X11 the option can still be set manually be editing the config file or by specifying the environment variable to pick EGL or to pick OpenGL ES 2."

https://blog.martin-graesslin.com/blog/2016/08/opengl-changes-in-kwin-compositing/
http://blog.martin-graesslin.com/blog/2012/09/who-needs-glx-kwin-does-not/

Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2017-03-19 00:10:55 UTC
Thanks, I've dropped USE=egl instead and added the dependency +build switch under USE=wayland in commit c848a2355c8ede11b283cd40babf915c60700f2c