egl/wayland: don't block in swrast when updating buffers for zink

this is broken, let vulkan wsi handle buffer management

Fixes: 74451ed3f0 ("egl/wayland: wait for compositor to release shm buffers")

Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24700>
This commit is contained in:
Mike Blumenkrantz 2023-08-15 12:21:24 -04:00 committed by Marge Bot
parent e213623a8c
commit 8aa43d70e1

View file

@ -2416,8 +2416,8 @@ 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) ==
-1) {
bool error = zink || wl_display_dispatch_queue(dri2_dpy->wl_dpy, dri2_surf->wl_queue) == -1;
if (error) {
_eglError(EGL_BAD_ALLOC, "waiting for a free buffer failed");
return -1;
}