Mesa (master): surfaceless: Support EGL_WL_bind_wayland_display

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 4 16:33:35 UTC 2019


Module: Mesa
Branch: master
Commit: 3746ee912f4d068479c46ff18cb072b7624c60b0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3746ee912f4d068479c46ff18cb072b7624c60b0

Author: Adam Jackson <ajax at redhat.com>
Date:   Thu Oct  3 10:10:59 2019 -0400

surfaceless: Support EGL_WL_bind_wayland_display

Feature parity with the drm, x11, and wayland platforms.

Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/1870
Tested-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

---

 src/egl/drivers/dri2/platform_surfaceless.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c
index 20305c8685f..1a2d3be0aad 100644
--- a/src/egl/drivers/dri2/platform_surfaceless.c
+++ b/src/egl/drivers/dri2/platform_surfaceless.c
@@ -409,6 +409,10 @@ dri2_initialize_surfaceless(_EGLDriver *drv, _EGLDisplay *disp)
    }
 
    dri2_setup_screen(disp);
+#ifdef HAVE_WAYLAND_PLATFORM
+   dri2_dpy->device_name = loader_get_device_name_for_fd(dri2_dpy->fd);
+#endif
+   dri2_set_WL_bind_wayland_display(drv, disp);
 
    if (!surfaceless_add_configs_for_visuals(drv, disp)) {
       err = "DRI2: failed to add configs";




More information about the mesa-commit mailing list