egl/wayland: enable WL_bind_wayland_display for zink
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 13 Sep 2023 16:40:16 +0000 (12:40 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 19 Sep 2023 02:47:31 +0000 (02:47 +0000)
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24975>

src/egl/drivers/dri2/platform_wayland.c

index 01a1ded..90d0e08 100644 (file)
@@ -2809,6 +2809,9 @@ dri2_initialize_wayland_swrast(_EGLDisplay *disp)
       goto cleanup;
    }
 
+   if (disp->Options.Zink && dri2_dpy->fd_render_gpu >= 0 &&
+       (dri2_dpy->wl_dmabuf || dri2_dpy->wl_drm))
+      dri2_set_WL_bind_wayland_display(disp);
    disp->Extensions.EXT_swap_buffers_with_damage = EGL_TRUE;
    disp->Extensions.EXT_present_opaque = EGL_TRUE;