wayland-egl: import libwayland-egl.so frontend library from Mesa

Graphics / Wayland / Wayland - Emil Velikov [collabora.com] - 9 February 2018 17:30 EST

Currently the client-facing libwayland-egl API is defined by a header file shipped by Wayland, but the implementation is left to each vendor.

This can cause collisions when multiple implementations are installed on the same system. Importing the implementation into Wayland with a stable and versioned driver-facing ABI allows multiple drivers to coexist on the same system.

Pull the sample implementation from Mesa commit 677edff5cfd ("wayland-egl: rework and simplify wl_egl_window initialization") It has been used by the Mesa open source drivers, NVIDIA and others[1].

v2: Reword commit message, rebase on top of newer Mesa.

[1] https://github.com/thayama/wayland-egl

Cc: Miguel A. Vico Cc: James Jones Cc: Daniel Stone Cc: duncan-roe Cc: Takanari Hayama

549a5ea wayland-egl: import libwayland-egl.so frontend library from Mesa
egl/wayland-egl-abi-check.c | 235 ++++++++++++++++++++++++++++++++++++++++++
egl/wayland-egl-backend.h | 63 +++++++++++
egl/wayland-egl-symbols-check | 16 +++
egl/wayland-egl.c | 109 ++++++++++++++++++++
egl/wayland-egl.pc.in | 11 ++
5 files changed, 434 insertions(+)

Upstream: cgit.freedesktop.org

  • Share