Mesa (master): gallium-egl: Commit the rest of the native_wayland_drm_bufmgr_helper v2 patch
Kristian Høgsberg
krh at kemper.freedesktop.org
Wed Aug 7 18:27:39 UTC 2013
Module: Mesa
Branch: master
Commit: 5575fdaccf02b3e10e6000fe2a4d10fd17ba7c20
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5575fdaccf02b3e10e6000fe2a4d10fd17ba7c20
Author: Kristian Høgsberg <krh at bitplanet.net>
Date: Wed Aug 7 11:19:59 2013 -0700
gallium-egl: Commit the rest of the native_wayland_drm_bufmgr_helper v2 patch
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 at bitplanet.net>
---
src/gallium/state_trackers/egl/drm/native_drm.c | 2 ++
src/gallium/state_trackers/egl/drm/native_drm.h | 4 ----
src/gallium/state_trackers/egl/x11/native_dri2.c | 5 ++---
3 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/gallium/state_trackers/egl/drm/native_drm.c b/src/gallium/state_trackers/egl/drm/native_drm.c
index 88ac490..c82bbe4 100644
--- a/src/gallium/state_trackers/egl/drm/native_drm.c
+++ b/src/gallium/state_trackers/egl/drm/native_drm.c
@@ -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);
diff --git a/src/gallium/state_trackers/egl/drm/native_drm.h b/src/gallium/state_trackers/egl/drm/native_drm.h
index 2c015b2..6a1cd5d 100644
--- a/src/gallium/state_trackers/egl/drm/native_drm.h
+++ b/src/gallium/state_trackers/egl/drm/native_drm.h
@@ -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 {
diff --git a/src/gallium/state_trackers/egl/x11/native_dri2.c b/src/gallium/state_trackers/egl/x11/native_dri2.c
index 3d08863..3aa7c17 100644
--- a/src/gallium/state_trackers/egl/x11/native_dri2.c
+++ b/src/gallium/state_trackers/egl/x11/native_dri2.c
@@ -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);
More information about the mesa-commit
mailing list