[Mesa-dev] [PATCH] egl_dri2: Don't use gbm_dri_device when its not there

Chad Versace chad.versace at linux.intel.com
Tue Oct 22 21:25:20 CEST 2013


I'm unsure if it makes sense to build EGL with Wayland support
but without GBM support. That is, to configure Mesa with

   --with-egl-platforms=wayland  # no drm

Also, the patch is corrupt. `git am` is unable to apply it.
Did you copy-paste the patch into your email client? Instead,
use `git send-email`.


On 10/22/2013 01:41 AM, jorgen.lind at digia.com wrote:
> From: =?UTF-8?q?J=C3=B8rgen=20Lind?= <jorgen.lind at digia.com>
> Date: Tue, 22 Oct 2013 09:21:05 +0200
> Subject: [PATCH] Don't use gbm_dri_device when its not there
>
> ---
>   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 b29eb1c..b143a95 100644
> --- a/src/egl/drivers/dri2/egl_dri2.c
> +++ b/src/egl/drivers/dri2/egl_dri2.c
> @@ -1843,10 +1843,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;
>   }
>



More information about the mesa-dev mailing list