Diffusion KWin 58fa92e40bd3

Pass EGL_PLATFORM=DRM to XWayland

Authored by graesslin on Dec 23 2016, 3:18 PM.

Description

Pass EGL_PLATFORM=DRM to XWayland

XWayland needs to create an eglDisplay for platform DRM. Depending on
the mesa version eglInitialize expects that the passed native display
is a Wayland display and crashes. This prevents KWin to startup.

This patch sets EGL_PLATFORM for Xwayland. This is actually not KWin's
job, but if it otherwise crashes it's better than nothing.

As Xwayland only supports DRM, it's fine to use this.

Details

Committed
graesslinDec 23 2016, 3:18 PM
Parents
R108:286ad7104d29: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown

This commit breaks KWin on Plasma Mobile when HWComposer backend is used: https://invent.kde.org/snippets/5
I'm not sure what XWayland supports, but when I workaround this line by creating a link from /usr/lib/i386-linux-gnu/libhybris/eglplatform_DRM.so to /usr/lib/i386-linux-gnu/libhybris/eglplatform_wayland.so, XWayland applications start and work fine.

This commit breaks KWin on Plasma Mobile when HWComposer backend is used: https://invent.kde.org/snippets/5
I'm not sure what XWayland supports, but when I workaround this line by creating a link from /usr/lib/i386-linux-gnu/libhybris/eglplatform_DRM.so to /usr/lib/i386-linux-gnu/libhybris/eglplatform_wayland.so, XWayland applications start and work fine.

Please fix this on system integration level. I prefer a working solution on main system and free drivers than having to carry workarounds for proprietary drivers.

bshah added a subscriber: bshah.Feb 8 2019, 9:44 AM

Please fix this on system integration level. I prefer a working solution on main system and free drivers than having to carry workarounds for proprietary drivers.

What would be system integration level solution?

Setting the named symlink.