compositor-wayland: Expose zlinux_dmabuf

This mirrors what 5ffb440c3f did for
compositor-x11, and allows testing without having to restart the
compositor-drm everytime.

Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Emmanuel Gil Peyrot 2015-09-25 11:58:40 +02:00 committed by Bryce Harrington
parent a0dd5b4d1f
commit c59f18ed19

View File

@ -48,6 +48,7 @@
#include "shared/cairo-util.h"
#include "fullscreen-shell-client-protocol.h"
#include "presentation_timing-server-protocol.h"
#include "linux-dmabuf.h"
#define WINDOW_TITLE "Weston Compositor"
@ -2022,6 +2023,12 @@ wayland_backend_create(struct weston_compositor *compositor, int use_pixman,
wl_event_source_check(b->parent.wl_source);
if (compositor->renderer->import_dmabuf) {
if (linux_dmabuf_setup(compositor) < 0)
weston_log("Error: initializing dmabuf "
"support failed.\n");
}
compositor->backend = &b->base;
return b;
err_display: