xwayland: Add support for eglstreams

Submitted by Lyude Paul on Feb. 9, 2018, 9:41 p.m.

Details

Reviewer None
Submitted Feb. 9, 2018, 9:41 p.m.
Last Updated Feb. 9, 2018, 9:41 p.m.
Revision 1
Root msg-id(s): 20180209214110.31557-1-lyude@redhat.com

Cover Letter(s)

Revision 1
      Some changes since the last version:
 - Get rid of some unecessary context switches
 - Remove EGLSurface from current context on deletion with
   eglMakeCurrent() since an EGLSurface can stay around after deletion
   for as long as it's current
 - Use EGL_CONTEXT_PRIORITY_LEVEL_IMG to set our rendering priority to
   high, speeds things up a tiny bit more.

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 | 824 ++++++++++++++++++++++++++++++++
 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, 1816 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
    

Revisions