glamor: Implement PixmapFromBuffers and BuffersFromPixmap

Graphics / X.Org / X.Org Server - Louis-Francis Ratté-Boulianne [collabora.com] - 5 March 2018 18:27 EST

It relies on GBM >= 17.1.0 where we can import BO with multiple planes and a format modifier (GBM_BO_IMPORT_FD_MODIFIER).

v2: Properly free fds in Xwayland

[Also add glamor_egl_ext.h to Makefile.am for distcheck's sake - ajax]

c8c276c95 glamor: Implement PixmapFromBuffers and BuffersFromPixmap
configure.ac | 4 +
glamor/Makefile.am | 1 +
glamor/glamor.c | 37 ++++---
glamor/glamor.h | 65 +++++++------
glamor/glamor_egl.c | 136 ++++++++++++++++++++++----
glamor/glamor_egl.h | 1 +
glamor/glamor_egl_ext.h | 65 +++++++++++++
glamor/glamor_egl_stubs.c | 16 ++-
hw/xwayland/.gitignore | 2 +
hw/xwayland/Makefile.am | 10 +-
hw/xwayland/meson.build | 5 +-
hw/xwayland/xwayland-glamor.c | 219 ++++++++++++++++++++++++++++++++----------
hw/xwayland/xwayland.c | 6 +-
hw/xwayland/xwayland.h | 10 +-
include/dix-config.h.in | 3 +
include/meson.build | 2 +
16 files changed, 462 insertions(+), 120 deletions(-)

Upstream: cgit.freedesktop.org


  • Share