EGL_WL_bind_wayland_display was previously supported on all platforms,
except the EGL device platform.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Simon Zeni <simon@bl4ckb0ne.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8638>
}
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(disp);
if (!dri2_add_pbuffer_configs_for_visuals(disp)) {
err = "DRI2: failed to add configs";