From 8b460cf9b5cd524f661cd32c460bcf00068f6ee7 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 5 Apr 2024 12:35:30 -0500 Subject: [PATCH] egl/wayland: Use loader_wayland_dispatch This is just to get event tracing in perfetto, as the wrapper calls MESA_TRACE_FUNC(). It can be useful to see how long and when we stall in wayland dispatch. Signed-off-by: Derek Foreman Part-of: --- src/egl/drivers/dri2/platform_wayland.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 33e5b727c8b..76161732216 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1488,7 +1488,7 @@ dri2_wl_swap_buffers_with_damage(_EGLDisplay *disp, _EGLSurface *draw, dri2_dpy->flush->invalidate(dri2_surf->dri_drawable); while (dri2_surf->throttle_callback != NULL) - if (wl_display_dispatch_queue(dri2_dpy->wl_dpy, dri2_surf->wl_queue) == + if (loader_wayland_dispatch(dri2_dpy->wl_dpy, dri2_surf->wl_queue, NULL) == -1) return -1; @@ -2273,7 +2273,7 @@ swrast_update_buffers(struct dri2_egl_surface *dri2_surf) /* wait for the compositor to release a buffer */ if (!dri2_surf->back) { - if (wl_display_dispatch_queue(dri2_dpy->wl_dpy, dri2_surf->wl_queue) == + if (loader_wayland_dispatch(dri2_dpy->wl_dpy, dri2_surf->wl_queue, NULL) == -1) { _eglError(EGL_BAD_ALLOC, "waiting for a free buffer failed"); return -1; @@ -2328,7 +2328,7 @@ dri2_wl_swrast_attach_backbuffer(struct dri2_egl_surface *dri2_surf) dri2_egl_display(dri2_surf->base.Resource.Display); while (dri2_surf->throttle_callback != NULL) - if (wl_display_dispatch_queue(dri2_dpy->wl_dpy, dri2_surf->wl_queue) == + if (loader_wayland_dispatch(dri2_dpy->wl_dpy, dri2_surf->wl_queue, NULL) == -1) return;