gallium-egl: Commit the rest of the native_wayland_drm_bufmgr_helper v2 patch
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 7 Aug 2013 18:19:59 +0000 (11:19 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 7 Aug 2013 18:23:47 +0000 (11:23 -0700)
I missed Anders v2 on the list which fixed non-wayland compilation:

http://lists.freedesktop.org/archives/mesa-dev/2013-July/042062.html

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
src/gallium/state_trackers/egl/drm/native_drm.c
src/gallium/state_trackers/egl/drm/native_drm.h
src/gallium/state_trackers/egl/x11/native_dri2.c

index 88ac490e7657dd3ba7e5f787a4c06ccdbaca6955..c82bbe4d7417a010bcc66653d8324cf5c2789458 100644 (file)
@@ -132,7 +132,9 @@ drm_display_destroy(struct native_display *ndpy)
 
    FREE(drmdpy->device_name);
 
+#ifdef HAVE_WAYLAND_BACKEND
    wayland_drm_bufmgr_destroy(ndpy->wayland_bufmgr);
+#endif
 
    if (drmdpy->own_gbm) {
       gbm_device_destroy(&drmdpy->gbmdrm->base.base);
index 2c015b23457d339c77030254dbc75adf451f972b..6a1cd5deef602cfcb39be2ba0a2149a0eca4fb93 100644 (file)
@@ -67,10 +67,6 @@ struct drm_display {
    struct drm_surface **shown_surfaces;
    /* save the original settings of the CRTCs */
    struct drm_crtc *saved_crtcs;
-
-#ifdef HAVE_WAYLAND_BACKEND
-   struct wl_drm *wl_server_drm; /* for EGL_WL_bind_wayland_display */
-#endif
 };
 
 struct drm_config {
index 3d0886391c8b7e5af442d0d14780ec54fe6b8683..3aa7c17dbc51f0b974ec871bd1c11c8700bd2e67 100644 (file)
@@ -60,9 +60,6 @@ struct dri2_display {
    int num_configs;
 
    struct util_hash_table *surfaces;
-#ifdef HAVE_WAYLAND_BACKEND
-   struct wl_drm *wl_server_drm; /* for EGL_WL_bind_wayland_display */
-#endif
 };
 
 struct dri2_surface {
@@ -757,7 +754,9 @@ dri2_display_destroy(struct native_display *ndpy)
    if (dri2dpy->surfaces)
       util_hash_table_destroy(dri2dpy->surfaces);
 
+#ifdef HAVE_WAYLAND_BACKEND
    wayland_drm_bufmgr_destroy(ndpy->wayland_bufmgr);
+#endif
 
    if (dri2dpy->xscr)
       x11_screen_destroy(dri2dpy->xscr);