From 3746ee912f4d068479c46ff18cb072b7624c60b0 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 3 Oct 2019 10:10:59 -0400 Subject: [PATCH] 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 --- 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"; -- 2.30.2