[RFC 0/3] xwayland: Add support for eglstreams

The day has finally come. "Yay". As many of you are aware, nvidia currently only has makeshift support for Wayland using the EGLStream protocol. Unfortunately, nvidia makes up a huge amount of consumer machine's GPUs so until they get proper wayland support, we have to support this in X. This patchset isn't terribly useful from the perspective of a user: it doesn't provide hardware acceleration to X apps yet, as that will require glxvnd support. It does however, at least draw X pixmaps onto the screen using the GPU. It's a start. We also add some EGLDevice helpers with this, for the day when mesa grows the ability to support extensions. Lyude Paul (3): xwayland: Decouple GBM from glamor xwayland: Add xwayland-config.h xwayland: Add glamor egl_backend for EGLStreams configure.ac | 31 ++ hw/xwayland/Makefile.am | 26 +- hw/xwayland/meson.build | 18 +- hw/xwayland/xwayland-glamor-eglstream.c | 813 ++++++++++++++++++++++++++++++++ hw/xwayland/xwayland-glamor-gbm.c | 624 ++++++++++++++++++++++++ hw/xwayland/xwayland-glamor.c | 577 +++++------------------ hw/xwayland/xwayland.c | 57 ++- hw/xwayland/xwayland.h | 95 +++- include/meson.build | 10 +- include/xwayland-config.h.in | 13 + include/xwayland-config.h.meson.in | 11 + meson.build | 15 + meson_options.txt | 2 + 13 files changed, 1801 insertions(+), 491 deletions(-) create mode 100644 hw/xwayland/xwayland-glamor-eglstream.c create mode 100644 hw/xwayland/xwayland-glamor-gbm.c create mode 100644 include/xwayland-config.h.in create mode 100644 include/xwayland-config.h.meson.in -- 2.14.3