From: Eric Engestrom Date: Sun, 11 Jun 2017 22:09:44 +0000 (+0100) Subject: egl: improve dri2_fallback_swap_buffers_with_damage() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40a8385d8b7db27a6d8b7a8f3a6500b8694bcc5e;p=mesa.git egl: improve dri2_fallback_swap_buffers_with_damage() Let's (try to) set damages before swapping buffers. Signed-off-by: Eric Engestrom Reviewed-by: Tapani Pälli --- diff --git a/src/egl/drivers/dri2/egl_dri2_fallbacks.h b/src/egl/drivers/dri2/egl_dri2_fallbacks.h index d8363c9bdd7..604db881a8f 100644 --- a/src/egl/drivers/dri2/egl_dri2_fallbacks.h +++ b/src/egl/drivers/dri2/egl_dri2_fallbacks.h @@ -68,6 +68,7 @@ dri2_fallback_swap_buffers_with_damage(_EGLDriver *drv, _EGLDisplay *dpy, const EGLint *rects, EGLint n_rects) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(dpy); + dri2_dpy->vtbl->set_damage_region(drv, dpy, surf, rects, n_rects); return dri2_dpy->vtbl->swap_buffers(drv, dpy, surf); }