1From c3f2bd340334d6641901b6fc4611d2fb2cf8cebf Mon Sep 17 00:00:00 2001 2From: Jeffy Chen <jeffy.chen@rock-chips.com> 3Date: Tue, 13 Dec 2022 16:12:30 +0800 4Subject: [PATCH 92/92] vnc: Support linux-dmabuf 5 6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> 7--- 8 libweston/backend-vnc/vnc.c | 7 +++++++ 9 1 file changed, 7 insertions(+) 10 11diff --git a/libweston/backend-vnc/vnc.c b/libweston/backend-vnc/vnc.c 12index ed68f45..0df3135 100644 13--- a/libweston/backend-vnc/vnc.c 14+++ b/libweston/backend-vnc/vnc.c 15@@ -52,6 +52,7 @@ 16 #include "shared/timespec-util.h" 17 #include <libweston/libweston.h> 18 #include <libweston/backend-vnc.h> 19+#include "linux-dmabuf.h" 20 #include "pixel-formats.h" 21 #include "pixman-renderer.h" 22 23@@ -1053,6 +1054,12 @@ no_tls: 24 goto err_output; 25 } 26 27+ if (compositor->renderer->import_dmabuf) { 28+ if (linux_dmabuf_setup(compositor) < 0) 29+ weston_log("Error: initializing dmabuf " 30+ "support failed.\n"); 31+ } 32+ 33 return backend; 34 35 err_output: 36-- 372.20.1 38 39