summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2019-10-03 10:10:59 -0400
committerAdam Jackson <[email protected]>2019-10-04 15:49:10 +0000
commit3746ee912f4d068479c46ff18cb072b7624c60b0 (patch)
tree570a240e684ad9b05e3cb37c1129c144b0eaaf59 /src
parent1264acdf4b75826a826b6cf1028133c491a87772 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/egl/drivers/dri2/platform_surfaceless.c4
1 files changed, 4 insertions, 0 deletions
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";