mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 00:10:33 +01:00
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:
parent
e213623a8c
commit
8aa43d70e1
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue