summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2014-04-08 23:28:42 +0300
committerEmil Velikov <emil.l.velikov@gmail.com>2014-04-25 21:17:54 +0100
commit17860309f17de78e729f77e86101004f61f6bcf3 (patch)
tree1c75e50e78e61f61d3c8b2fe6891054e83cddb95 /src/egl
parent63d4661ab28c036ab000f94812a91d93d538a72a (diff)
downloadexternal_mesa3d-17860309f17de78e729f77e86101004f61f6bcf3.zip
external_mesa3d-17860309f17de78e729f77e86101004f61f6bcf3.tar.gz
external_mesa3d-17860309f17de78e729f77e86101004f61f6bcf3.tar.bz2
egl: Protect use of gbm_dri with ifdef HAVE_DRM_PLATFORM
Otherwise it fails to compile if the drm egl platform is disabled. Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index dc541ad..a132964 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -2013,10 +2013,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;
}