From f0430b095b9a873b896ad5ce30cb36e848baffd7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 13 Feb 2024 16:31:01 -0500 Subject: [PATCH] egl/wayland: delete swrast references to zink this is an entirely separate path now Acked-by: Daniel Stone Part-of: --- src/egl/drivers/dri2/platform_wayland.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index a997462e750..2be7150ebb1 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -2276,7 +2276,6 @@ swrast_update_buffers(struct dri2_egl_surface *dri2_surf) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(dri2_surf->base.Resource.Display); - bool zink = dri2_surf->base.Resource.Display->Options.Zink; /* we need to do the following operations only once per frame */ if (dri2_surf->back) @@ -2286,8 +2285,7 @@ swrast_update_buffers(struct dri2_egl_surface *dri2_surf) (dri2_surf->base.Width != dri2_surf->wl_win->width || dri2_surf->base.Height != dri2_surf->wl_win->height)) { - if (!zink) - dri2_wl_release_buffers(dri2_surf); + dri2_wl_release_buffers(dri2_surf); dri2_surf->base.Width = dri2_surf->wl_win->width; dri2_surf->base.Height = dri2_surf->wl_win->height; @@ -2297,9 +2295,6 @@ swrast_update_buffers(struct dri2_egl_surface *dri2_surf) } /* find back buffer */ - if (zink) - return 0; - /* There might be a buffer release already queued that wasn't processed */ wl_display_dispatch_queue_pending(dri2_dpy->wl_dpy, dri2_surf->wl_queue);