xwayland: Add EGL-backed GLX provider

Graphics / X.Org / X.Org Server - Adam Jackson [redhat.com] - 23 May 2019 16:39 EDT

Without this we're using driswrast to set up GLX visuals. This is unfortunate because llvmpipe does not expose multisample configs, so
various apps that expect them will fail. With this we just query the capabilities of the EGL that's backing glamor, and reflect that to the GLX clients. This also paves the way for xserver to stop being a DRI driver loader, which is nice.

Fixes: xorg/xserver#640 Fixes: xorg/xserver#643 Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=98272

846924159 xwayland: Add EGL-backed GLX provider
hw/xwayland/Makefile.am | 4 +
hw/xwayland/meson.build | 10 +-
hw/xwayland/xwayland-glamor.c | 7 +
hw/xwayland/xwayland-glx.c | 344 ++++++++++++++++++++++++++++++++++++++++++
hw/xwayland/xwayland.h | 5 +
5 files changed, 369 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share