egl/dri2: enable EGL_WL_bind_wayland_display in EGL device platform
authorSimon Zeni <simon@bl4ckb0ne.ca>
Thu, 21 Jan 2021 04:19:37 +0000 (23:19 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 28 Jan 2021 00:30:10 +0000 (00:30 +0000)
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>

src/egl/drivers/dri2/platform_device.c

index 8aee125..3d979e9 100644 (file)
@@ -355,6 +355,10 @@ dri2_initialize_device(_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(disp);
 
    if (!dri2_add_pbuffer_configs_for_visuals(disp)) {
       err = "DRI2: failed to add configs";