egl: delete a DRI2_FLUSH check in dri2 swapbuffers

this is always true here

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:44:07 -04:00 committed by Marge Bot
parent af3aefda04
commit e5f9d004bb

View file

@ -1093,8 +1093,7 @@ dri2_x11_swap_buffers_msc(_EGLDisplay *disp, _EGLSurface *draw, int64_t msc,
* happened. The driver should still be using the viewport hack to catch
* window resizes.
*/
if (dri2_dpy->flush->base.version >= 3 && dri2_dpy->flush->invalidate)
dri2_dpy->flush->invalidate(dri2_surf->dri_drawable);
dri2_dpy->flush->invalidate(dri2_surf->dri_drawable);
return swap_count;
}