Allow compositor be started using software rendering 32/25932/3
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 20 Jan 2021 17:32:16 +0000 (18:32 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 26 Jan 2021 16:48:11 +0000 (16:48 +0000)
This allows to produce working images without restricted licenses.
Software rendering will be slow and screen updates take a while.

Bug-AGL: SPEC-3774
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I4edb1a66284d60d4bae7e9f09f87b4268e2431df

recipes-graphics/wayland/weston-init_agldemo.inc

index a5eeab6..2ee4cec 100644 (file)
@@ -3,10 +3,12 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/weston-init:"
 inherit agl-graphical
 
 AGL_DEFAULT_WESTONSTART ??= "/usr/bin/agl-compositor --config ${sysconfdir}/xdg/weston/weston.ini"
+WESTON_USE_PIXMAN ??= "0"
 
 WESTONSTART ??= "${AGL_DEFAULT_WESTONSTART} ${WESTONARGS}"
 WESTONSTART_append = " ${@bb.utils.contains("IMAGE_FEATURES", "debug-tweaks", " --log=${DISPLAY_XDG_RUNTIME_DIR}/compositor.log", "",d)}"
 WESTONSTART_append = " ${@bb.utils.contains("DISTRO_FEATURES", "agl-devel", " --debug", "",d)}"
+WESTONSTART_append = " ${@bb.utils.contains("WESTON_USE_PIXMAN", "1", " --use-pixman", "",d)}"
 
 # Systemd name of DRM device to have weston/agl-compositor startup depend
 # upon, if required.  Currently only x86-64 seems to need a dependency to