mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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 <derek.foreman@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28634>
This commit is contained in:
parent
90effcceab
commit
8b460cf9b5
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue