From 6ec09e6a0f09d1cb9c3761b339590c0a0baeeeb3 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Tue, 13 Dec 2016 11:55:45 -0600 Subject: [PATCH] weston: Add egl and gles support for non-GPU SoCs For SoCs with no GPU, configure weston to use the software versions of egl and gles through mesa. Signed-off-by: Tom Hochstein Signed-off-by: Otavio Salvador --- recipes-graphics/wayland/weston_%.bbappend | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend index f7b12d0b..b78a299a 100644 --- a/recipes-graphics/wayland/weston_%.bbappend +++ b/recipes-graphics/wayland/weston_%.bbappend @@ -17,10 +17,18 @@ SRC_URI_append_imxgpu3d = " \ file://0016-Link-compositor-to-egl.patch \ " +# The 'egl' configuration of weston requires gles support, and consideration +# must be taken for the different SoC capabilities: +# - For SoCs with 3d support, imx-gpu-viv provides hardware-accelerated +# egl and gles, so weston egl configuration is enabled. +# - For SoCs with VG2D, like i.MX 6SoloLite, imx-gpu-viv provides +# hardware-accelerated egl but does not provide a compatible software +# version of gles, so weston egl configuration is disabled. +# - For SoCs with no GPU, mesa provides software implementations of egl +# and gles, so weston egl configuration is enabled. PACKAGECONFIG_IMX_TO_APPEND = "" PACKAGECONFIG_IMX_TO_APPEND_imxgpu3d = "cairo-glesv2" PACKAGECONFIG_IMX_TO_REMOVE = "" -PACKAGECONFIG_IMX_TO_REMOVE_imxpxp = "egl" PACKAGECONFIG_IMX_TO_REMOVE_imxgpu2d = "egl" PACKAGECONFIG_IMX_TO_REMOVE_imxgpu3d = "" -- 2.40.1