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

Lyude Paul lyude at redhat.com
Fri Feb 9 00:06:29 UTC 2018


Some changes:
 - I broke GBM by accident in v1 by not making sure that we setup wl_drm
   in xwl_glamor_gbm_init_wl_registry() by incrementing
   xwl_screen->expecting_event in xwl_glamor_gbm_init_wl_registry()
   properly and decrementing it in the wl_drm handlers. So now we don't
   break that.
 - Fixed up the commit message for adding EGLStreams in response to
   ajax's comments

As well, like ajax asked here's some benchmarks of how well this works:

(keep in mind, nouveau is at max pstate here since otherwise it performs
terribly)

1: nouveau-gbm.log
2: nouveau-shm.log
3: nv-eglstream.log
4: nv-shm.log

     1         2         3         4    Operation
--------  --------  --------  --------  ---------
 63800.0   23500.0   27600.0   27100.0  Copy 500x500 from pixmap to window

Unfortunately, not that great :(

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       | 628 ++++++++++++++++++++++++
 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, 1805 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



More information about the xorg-devel mailing list