egl/drm: replace a DRI2_FLUSH check with a non-kms_swarst check

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:58:03 -04:00 committed by Marge Bot
parent b1f1046857
commit a98434d257

View file

@ -314,7 +314,7 @@ dri2_drm_swap_buffers(_EGLDisplay *disp, _EGLSurface *draw)
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw);
if (!dri2_dpy->flush) {
if (dri2_dpy->swrast_not_kms) {
driSwapBuffers(dri2_surf->dri_drawable);
return EGL_TRUE;
}