From af3aefda0426db61682baea0327a040e9f109f7f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 30 Jul 2024 09:41:34 -0400 Subject: [PATCH] egl: use a swrast check for a swapbuffers DRI2_FLUSH case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as the comment indicates, this is swrast. thus, check swrast Reviewed-by: Marek Olšák Part-of: --- src/egl/drivers/dri2/platform_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 5a957745df9..e645b15abb1 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -1115,7 +1115,7 @@ dri2_x11_swap_buffers(_EGLDisplay *disp, _EGLSurface *draw) kopperSwapBuffers(dri2_surf->dri_drawable, __DRI2_FLUSH_INVALIDATE_ANCILLARY); return EGL_TRUE; - } else if (!dri2_dpy->flush) { + } else if (dri2_dpy->swrast) { /* aka the swrast path, which does the swap in the gallium driver. */ driSwapBuffers(dri2_surf->dri_drawable); return EGL_TRUE;