mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 08:20:12 +01:00
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>
This commit is contained in:
parent
eb1235f343
commit
235144cf51
2 changed files with 8 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue