egl: use a swrast check for a swapbuffers DRI2_FLUSH case

as the comment indicates, this is swrast. thus, check swrast

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:41:34 -04:00
committed by Marge Bot
parent 0ff37e7591
commit af3aefda04

View File

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