[PATCH 4/7] compositor-x11: init linux_dmabuf support

Louis-Francis Ratté-Boulianne lfrb at collabora.com
Fri Dec 12 13:51:05 PST 2014


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

---
 src/compositor-x11.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/compositor-x11.c b/src/compositor-x11.c
index a760f33..7b15ba9 100644
--- a/src/compositor-x11.c
+++ b/src/compositor-x11.c
@@ -51,6 +51,7 @@
 #include "pixman-renderer.h"
 #include "../shared/config-parser.h"
 #include "../shared/image-loader.h"
+#include "linux-dmabuf.h"
 
 #define DEFAULT_AXIS_STEP_DISTANCE wl_fixed_from_int(10)
 
@@ -1587,6 +1588,10 @@ x11_compositor_create(struct wl_display *display,
 				     x11_compositor_handle_event, c);
 	wl_event_source_check(c->xcb_source);
 
+	/* XXX: check that dmabuf import is available in renderer */
+	if (linux_dmabuf_setup(&c->base) < 0)
+		weston_log("Error: initializing dmabuf support failed.\n");
+
 	return &c->base;
 
 err_x11_input:
-- 
2.1.0



More information about the wayland-devel mailing list