From 1d41299109f7793efa3b2824085408c91e0334bf Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 30 Jul 2024 09:51:15 -0400 Subject: [PATCH] egl: replace another DRI2_FLUSH check with a non-kms_swrast check in surface query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 4607b1106f6..b826f55f9f7 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -616,7 +616,7 @@ dri2_query_surface(_EGLDisplay *disp, _EGLSurface *surf, EGLint attribute, bool changed = surf->Width != w || surf->Height != h; surf->Width = w; surf->Height = h; - if (changed && dri2_dpy->flush) + if (changed && !dri2_dpy->swrast_not_kms) dri_invalidate_drawable(drawable); } break;