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@collabora.co.uk>
This commit is contained in:
Adam Jackson 2019-10-03 10:10:59 -04:00 committed by Adam Jackson
parent 1264acdf4b
commit 3746ee912f

View file

@ -409,6 +409,10 @@ dri2_initialize_surfaceless(_EGLDriver *drv, _EGLDisplay *disp)
} }
dri2_setup_screen(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)) { if (!surfaceless_add_configs_for_visuals(drv, disp)) {
err = "DRI2: failed to add configs"; err = "DRI2: failed to add configs";