On 04/04/14 09:36, Ander Conselvan de Oliveira wrote:
> From: Ander Conselvan de Oliveira <ander.conselvan.de.olive...@intel.com>
> 
> Otherwise it fails to compile if the drm egl platform is disabled.
Similar note to patch 2 - independent of the series, stable material.

Cc: "10.0" "10.1" <mesa-sta...@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.veli...@gmail.com>

> ---
>  src/egl/drivers/dri2/egl_dri2.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
> index 8abe8ac..a5ba048 100644
> --- a/src/egl/drivers/dri2/egl_dri2.c
> +++ b/src/egl/drivers/dri2/egl_dri2.c
> @@ -2015,10 +2015,12 @@ dri2_bind_wayland_display_wl(_EGLDriver *drv, 
> _EGLDisplay *disp,
>     if (!dri2_dpy->wl_server_drm)
>          return EGL_FALSE;
>  
> +#ifdef HAVE_DRM_PLATFORM
>     /* We have to share the wl_drm instance with gbm, so gbm can convert
>      * wl_buffers to gbm bos. */
>     if (dri2_dpy->gbm_dri)
>        dri2_dpy->gbm_dri->wl_drm = dri2_dpy->wl_server_drm;
> +#endif
>  
>     return EGL_TRUE;
>  }
> 

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to