[meta-freescale] [meta-fsl-arm][PATCH 2/2] weston: Fix g2d compositor startup failure

Tom Hochstein tom.hochstein at nxp.com
Fri May 27 16:09:55 PDT 2016


Signed-off-by: Tom Hochstein <tom.hochstein at nxp.com>
---
 ...GS-1192-xwld-g2d-compositor-dose-not-work.patch | 31 ++++++++++++++++++++++
 recipes-graphics/wayland/weston_%.bbappend         |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 recipes-graphics/wayland/weston/0003-MGS-1192-xwld-g2d-compositor-dose-not-work.patch

diff --git a/recipes-graphics/wayland/weston/0003-MGS-1192-xwld-g2d-compositor-dose-not-work.patch b/recipes-graphics/wayland/weston/0003-MGS-1192-xwld-g2d-compositor-dose-not-work.patch
new file mode 100644
index 0000000..b9dfbea
--- /dev/null
+++ b/recipes-graphics/wayland/weston/0003-MGS-1192-xwld-g2d-compositor-dose-not-work.patch
@@ -0,0 +1,31 @@
+From 9de82e2b39f839b5547308bf25d0d71f79936631 Mon Sep 17 00:00:00 2001
+From: Yong Gan <b45748 at freescale.com>
+Date: Tue, 27 Oct 2015 15:07:02 +0800
+Subject: [PATCH] MGS-1192: xwld: g2d compositor dose not work
+
+Initial the backend->use_gal2d by input parameters.
+
+Upstream-Status: Inappropriate [i.MX specific]
+
+Signed-off-by: Yong Gan <yong.gan at freescale.com>
+---
+ src/compositor-fbdev.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c
+index c6f732e..ed25576 100644
+--- a/src/compositor-fbdev.c
++++ b/src/compositor-fbdev.c
+@@ -900,7 +900,8 @@ fbdev_backend_create(struct weston_compositor *compositor, int *argc, char *argv
+ 	backend->base.restore = fbdev_restore;
+ 
+ 	backend->prev_state = WESTON_COMPOSITOR_ACTIVE;
+-	backend->use_pixman = !param->use_gl;
++	backend->use_pixman = !(param->use_gl || param->use_gal2d);
++	backend->use_gal2d = param->use_gal2d;
+ 
+ 	for (key = KEY_F1; key < KEY_F9; key++)
+ 		weston_compositor_add_key_binding(compositor, key,
+-- 
+1.9.1
+
diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend
index fae4286..b2f4466 100644
--- a/recipes-graphics/wayland/weston_%.bbappend
+++ b/recipes-graphics/wayland/weston_%.bbappend
@@ -2,6 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 SRC_URI_append_mx6 = " \
     file://0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch \
+    file://0003-MGS-1192-xwld-g2d-compositor-dose-not-work.patch \
     file://0004-MGS-1235-Fix-setenv-and-clear-environments.patch \
     file://0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch \
     file://0006-MGS-1236-imx6qp-imx6dl-First-frame-distored-when-som.patch \
-- 
1.9.1



More information about the meta-freescale mailing list