]> code.ossystems Code Review - meta-freescale.git/commitdiff
weston: Add egl and gles support for non-GPU SoCs
authorTom Hochstein <tom.hochstein@nxp.com>
Tue, 13 Dec 2016 17:55:45 +0000 (11:55 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 16 Dec 2016 19:01:24 +0000 (17:01 -0200)
For SoCs with no GPU, configure weston to use the software versions
of egl and gles through mesa.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-graphics/wayland/weston_%.bbappend

index f7b12d0b5bafefb3ce4c6aae204c059040e9ceaa..b78a299a0b87922d6363a5548ada3f8455cd224b 100644 (file)
@@ -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 = ""