From 09b52c61bfea671dc2ab42fb412eb08d2894cec5 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 30 Jul 2024 09:46:29 -0400 Subject: [PATCH] egl: replace another DRI2_FLUSH check with non-kms_swrast check in dri2_wait_client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit only (non-kms) swrast doesn't support this Reviewed-by: Marek Olšák Part-of: --- src/egl/drivers/dri2/egl_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 4414ab4a372..1636e89c374 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -1873,7 +1873,7 @@ dri2_wait_client(_EGLDisplay *disp, _EGLContext *ctx) /* FIXME: If EGL allows frontbuffer rendering for window surfaces, * we need to copy fake to real here.*/ - if (dri2_dpy->flush != NULL) + if (!dri2_dpy->swrast_not_kms) dri2_dpy->flush->flush(dri_drawable); return EGL_TRUE;