egl: replace another DRI2_FLUSH check with a non-kms_swrast check in surface query

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:51:15 -04:00 committed by Marge Bot
parent 3b050af311
commit 1d41299109

View file

@ -616,7 +616,7 @@ dri2_query_surface(_EGLDisplay *disp, _EGLSurface *surf, EGLint attribute,
bool changed = surf->Width != w || surf->Height != h;
surf->Width = w;
surf->Height = h;
if (changed && dri2_dpy->flush)
if (changed && !dri2_dpy->swrast_not_kms)
dri_invalidate_drawable(drawable);
}
break;