]> code.ossystems Code Review - meta-freescale.git/commitdiff
mesa: Update mesa and mesa-demos to support Sololite.
authorNeena Busireddy <neena.busireddy@freescale.com>
Mon, 18 Aug 2014 20:10:47 +0000 (15:10 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 20 Aug 2014 20:38:57 +0000 (17:38 -0300)
SoloLite should use mesa software rendering GL since
GPU for this machine does not have hardware accelerated GL.

Signed-off-by: Neena Busireddy <neena.busireddy@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-graphics/mesa/mesa-demos_%.bbappend
meta-fsl-arm/recipes-graphics/mesa/mesa_%.bbappend

index 989577d4408a87b61205ac25faa5430962443e7a..221a3c08fb2cef66ee1e221537c0c09188389471 100644 (file)
@@ -2,3 +2,4 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch"
 
+PACKAGECONFIG_remove_mx6sl = "gles1 gles2"
index 8e0a36b73ae68fc8b27190a421222766ce8ff9e1..adcf201848cb05fcb23d2c3fdf05d3cec35b0851 100644 (file)
@@ -2,9 +2,19 @@ PACKAGECONFIG_remove_mx5 = "egl gles"
 PROVIDES_remove_mx5 = "virtual/libgles1 virtual/libgles2 virtual/egl"
 
 PACKAGECONFIG_remove_mx6 = "egl gles"
-PROVIDES_remove_mx6 = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"
+
+# i.MX6SL uses mesa software rendering
+
+PROVIDES_remove_mx6 = "virtual/libgles1 virtual/libgles2 virtual/egl"
+PROVIDES_remove_mx6q = "virtual/libgl"
+PROVIDES_remove_mx6dl = "virtual/libgl"
+
+USE_VIV_LIBGL = "yes"
+USE_VIV_LIBGL_mx6sl = "no"
 
 # FIXME: Dirty hack to allow use of Vivante GPU libGL binary
 do_install_append_mx6 () {
-    rm -f ${D}${libdir}/libGL.*
+    if [ "${USE_VIV_LIBGL}" = "yes" ]; then
+        rm -f ${D}${libdir}/libGL.*
+    fi
 }