egl: replace another DRI2_FLUSH check with non-kms_swrast check in dri2_wait_client

only (non-kms) swrast doesn't support this

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30494>
This commit is contained in:
Mike Blumenkrantz 2024-07-30 09:46:29 -04:00 committed by Marge Bot
parent e5f9d004bb
commit 09b52c61bf

View file

@ -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;