Skip to content
Snippets Groups Projects
Commit 5d680bc0 authored by Ander Conselvan de Oliveira's avatar Ander Conselvan de Oliveira Committed by Carl Worth
Browse files

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: default avatarEmil Velikov <emil.l.velikov@gmail.com>
(cherry picked from commit 17860309)
parent e43327bd
No related branches found
No related tags found
No related merge requests found
......@@ -1892,10 +1892,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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment