[Mesa-dev] [PATCH mesa] egl/dri2: swap_buffers_with_damage falls back to swap_buffers

Rob Herring robh at kernel.org
Tue Oct 25 00:07:22 UTC 2016


On Mon, Oct 24, 2016 at 5:41 PM, Eric Engestrom <eric at engestrom.ch> wrote:
> CC: Rob Herring <robh at kernel.org>
> CC: Rob Clark <robdclark at gmail.com>
> Suggested-by: Emil Velikov <emil.velikov at collabora.com>
> Signed-off-by: Eric Engestrom <eric at engestrom.ch>

Good, you beat me to it.

Reviewed-by: Rob Herring <robh at kernel.org>

> ---
>  src/egl/drivers/dri2/egl_dri2_fallbacks.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/egl/drivers/dri2/egl_dri2_fallbacks.h b/src/egl/drivers/dri2/egl_dri2_fallbacks.h
> index e769af3..8dad271 100644
> --- a/src/egl/drivers/dri2/egl_dri2_fallbacks.h
> +++ b/src/egl/drivers/dri2/egl_dri2_fallbacks.h
> @@ -66,7 +66,8 @@ dri2_fallback_swap_buffers_with_damage(_EGLDriver *drv, _EGLDisplay *dpy,
>                                        _EGLSurface *surf,
>                                        const EGLint *rects, EGLint n_rects)
>  {
> -   return EGL_FALSE;
> +   struct dri2_egl_display *dri2_dpy = dri2_egl_display(dpy);
> +   return dri2_dpy->vtbl->swap_buffers(drv, dpy, surf);
>  }
>
>  static inline EGLBoolean
> --
> Cheers,
>   Eric
>


More information about the mesa-dev mailing list