From c3f2bd340334d6641901b6fc4611d2fb2cf8cebf Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Tue, 13 Dec 2022 16:12:30 +0800 Subject: [PATCH 92/92] vnc: Support linux-dmabuf Signed-off-by: Jeffy Chen --- libweston/backend-vnc/vnc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libweston/backend-vnc/vnc.c b/libweston/backend-vnc/vnc.c index ed68f45..0df3135 100644 --- a/libweston/backend-vnc/vnc.c +++ b/libweston/backend-vnc/vnc.c @@ -52,6 +52,7 @@ #include "shared/timespec-util.h" #include #include +#include "linux-dmabuf.h" #include "pixel-formats.h" #include "pixman-renderer.h" @@ -1053,6 +1054,12 @@ no_tls: goto err_output; } + if (compositor->renderer->import_dmabuf) { + if (linux_dmabuf_setup(compositor) < 0) + weston_log("Error: initializing dmabuf " + "support failed.\n"); + } + return backend; err_output: -- 2.20.1