aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman@collabora.com>2024-02-09 11:11:45 -0600
committerMarge Bot <emma+marge@anholt.net>2024-02-28 11:01:31 +0000
commit235144cf51536d98975f1c65e2df317332e9b35b (patch)
tree2b601d3d260539d7d19743f9ffb7ef9047a849cd
parenteb1235f3439a279bb188454fb9a762ec2ed2ae6e (diff)
downloadmesa3d-235144cf51536d98975f1c65e2df317332e9b35b.tar.gz
egl/wayland: Give names to our Wayland event queues
Named queues just add a little bit more debugging information. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27824>
-rw-r--r--src/egl/drivers/dri2/platform_wayland.c10
-rw-r--r--src/egl/meson.build2
2 files changed, 8 insertions, 4 deletions
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 <loader_wayland_helper.h>
#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]