diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 2816cbd62c8..ab530fb78d6 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -50,6 +50,7 @@ #include "kopper_interface.h" #include "loader.h" #include "loader_dri_helper.h" +#include #include "linux-dmabuf-unstable-v1-client-protocol.h" #include "wayland-drm-client-protocol.h" @@ -678,7 +679,8 @@ dri2_wl_create_window_surface(_EGLDisplay *disp, _EGLConfig *conf, dri2_surf->format = dri2_wl_shm_format_from_visual_idx(visual_idx); } - dri2_surf->wl_queue = wl_display_create_queue(dri2_dpy->wl_dpy); + dri2_surf->wl_queue = wl_display_create_queue_with_name(dri2_dpy->wl_dpy, + "mesa egl surface queue"); if (!dri2_surf->wl_queue) { _eglError(EGL_BAD_ALLOC, "dri2_create_surface"); goto cleanup_surf; @@ -2076,7 +2078,8 @@ dri2_initialize_wayland_drm(_EGLDisplay *disp) dri2_dpy->wl_dpy = disp->PlatformDisplay; } - dri2_dpy->wl_queue = wl_display_create_queue(dri2_dpy->wl_dpy); + dri2_dpy->wl_queue = wl_display_create_queue_with_name(dri2_dpy->wl_dpy, + "mesa egl display queue"); dri2_dpy->wl_dpy_wrapper = wl_proxy_create_wrapper(dri2_dpy->wl_dpy); if (dri2_dpy->wl_dpy_wrapper == NULL) @@ -2642,7 +2645,8 @@ dri2_initialize_wayland_swrast(_EGLDisplay *disp) dri2_dpy->wl_dpy = disp->PlatformDisplay; } - dri2_dpy->wl_queue = wl_display_create_queue(dri2_dpy->wl_dpy); + dri2_dpy->wl_queue = wl_display_create_queue_with_name(dri2_dpy->wl_dpy, + "mesa egl swrast display queue"); dri2_dpy->wl_dpy_wrapper = wl_proxy_create_wrapper(dri2_dpy->wl_dpy); if (dri2_dpy->wl_dpy_wrapper == NULL) diff --git a/src/egl/meson.build b/src/egl/meson.build index 8343bb6b953..9e5044d3294 100644 --- a/src/egl/meson.build +++ b/src/egl/meson.build @@ -126,7 +126,7 @@ if with_dri2 endif if with_platform_wayland deps_for_egl += [dep_wayland_client, dep_wayland_server, dep_wayland_egl_headers] - link_for_egl += libwayland_drm + link_for_egl += [libwayland_drm, libloader_wayland_helper] files_egl += files('drivers/dri2/platform_wayland.c') files_egl += wp_files['linux-dmabuf-unstable-v1'] files_egl += [wayland_drm_client_protocol_h]