surfaceless: Support EGL_WL_bind_wayland_display
authorAdam Jackson <ajax@redhat.com>
Thu, 3 Oct 2019 14:10:59 +0000 (10:10 -0400)
committerAdam Jackson <ajax@nwnk.net>
Fri, 4 Oct 2019 15:49:10 +0000 (15:49 +0000)
Feature parity with the drm, x11, and wayland platforms.

Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/1870
Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/egl/drivers/dri2/platform_surfaceless.c

index 20305c8685f9ec282eac4e7b9ef5d293dd9b1ae3..1a2d3be0aad76887cd37ae687a27829524cbb3ac 100644 (file)
@@ -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";