Skip to contentSkip to conversation

core-image-weston: Don't install clutter-1.0-examples for i.MX6SL

PATCH New Tom Hochstein 1 participant 2 messages May 27, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 core-image-weston: Don't install clutter-1.0-examples for i.MX6SL

Remove clutter-1.0-examples in case we are generating an image for the i.MX6SL SoC family as it does not provide GPU 3D support.

---
 recipes-graphics/images/core-image-weston.bbappend | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 recipes-graphics/images/core-image-weston.bbappend
recipes-graphics/images/core-image-weston.bbappend new file +3 -0
new file mode 100644
index 0000000..2a3cde6
@@ -0,0 +1,3 @@
+# FIXME: i.MX6SL cannot use mesa for Graphics and it lacks GL support,
+#        so for now we skip it.
+CORE_IMAGE_BASE_INSTALL_remove_mx6sl = "clutter-1.0-examples"
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 weston: Fix g2d compositor startup failure

---
 ...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
recipes-graphics/wayland/weston/0003-MGS-1192-xwld-g2d-compositor-dose-not-work.patch new file +31 -0
new file mode 100644
index 0000000..b9dfbea
@@ -0,0 +1,31 @@
+From 9de82e2b39f839b5547308bf25d0d71f79936631 Mon Sep 17 00:00:00 2001
+From: Yong Gan <[email protected]>
+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 <[email protected]>
+---
+ 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
+
recipes-graphics/wayland/weston_%.bbappend +1 -0
index fae4286..b2f4466 100644
@@ -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 \
Signature · 1 line
1.9.1