[PATCH 5/7] compositor-drm: init linux_dmabuf support
Louis-Francis Ratté-Boulianne
lfrb at collabora.com
Fri Dec 12 13:51:06 PST 2014
From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
src/compositor-drm.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 9b4d4dc..44fc912 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -50,6 +50,7 @@
#include "libinput-seat.h"
#include "launcher-util.h"
#include "vaapi-recorder.h"
+#include "linux-dmabuf.h"
#ifndef DRM_CAP_TIMESTAMP_MONOTONIC
#define DRM_CAP_TIMESTAMP_MONOTONIC 0x6
@@ -2881,6 +2882,10 @@ drm_compositor_create(struct wl_display *display,
weston_compositor_add_debug_binding(&ec->base, KEY_W,
renderer_switch_binding, ec);
+ /* XXX: check that dmabuf import is available in renderer */
+ if (linux_dmabuf_setup(&ec->base) < 0)
+ weston_log("Error: initializing dmabuf support failed.\n");
+
return &ec->base;
err_udev_monitor:
--
2.1.0
More information about the wayland-devel
mailing list