From: Pekka Paalanen <pekka.paala...@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

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to