Patchwork [meta-fsl-arm] mesa: Update mesa and mesa-demos to support SoloLite.

login
register
mail settings
Submitter Otavio Salvador
Date June 13, 2014, 9:29 p.m.
Message ID <CAP9ODKo-=+eb28r=gzC4mH0z=1ZhsY-Mfh=CHGAVAmdxXyy1pg@mail.gmail.com>
Download mbox | patch
Permalink /patch/73793/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - June 13, 2014, 9:29 p.m.
Hello Neena,

On Fri, Jun 13, 2014 at 5:31 PM, Neena Busireddy
<neena.busireddy@freescale.com> wrote:
> Since imx6slevk does not support full GPU, for sololite only
> disable the full GPU enablement in mesa and mesa-demos.
> SoloLite should use GL from mesa since its GPU does not have
> hardware accelerated GL.
>
> Signed-off-by: Neena Busireddy <neena.busireddy@freescale.com>

Please check the attached alternative patch.
Prabhu Sundararaj - June 13, 2014, 10:06 p.m.
what if new SOC like imx6sx comes, need to add PROVIDES_remove_mx6sx?


On Fri, Jun 13, 2014 at 4:29 PM, Otavio Salvador <otavio@ossystems.com.br>
wrote:

> Hello Neena,
>
> On Fri, Jun 13, 2014 at 5:31 PM, Neena Busireddy
> <neena.busireddy@freescale.com> wrote:
> > Since imx6slevk does not support full GPU, for sololite only
> > disable the full GPU enablement in mesa and mesa-demos.
> > SoloLite should use GL from mesa since its GPU does not have
> > hardware accelerated GL.
> >
> > Signed-off-by: Neena Busireddy <neena.busireddy@freescale.com>
>
> Please check the attached alternative patch.
>
> --
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
>
Otavio Salvador - June 14, 2014, 6:08 p.m.
On Fri, Jun 13, 2014 at 7:06 PM, Prabhu S <prabhusundar@gmail.com> wrote:
> what if new SOC like imx6sx comes, need to add PROVIDES_remove_mx6sx?

Yes; that might be the case.
Lauren Post - June 14, 2014, 6:25 p.m.
SoloX has a full GPU so does not need exception like SoloLite.  The GPU in SoloLite only supports OpenVG.  This is a special case for SoloLite only to use partial GPU acceleration.

On Fri, Jun 13, 2014 at 7:06 PM, Prabhu S <prabhusundar@gmail.com> wrote:
> what if new SOC like imx6sx comes, need to add PROVIDES_remove_mx6sx?

Patch

diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
index 8e0a36b..12f9c5d 100644
--- a/recipes-graphics/mesa/mesa_%.bbappend
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -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_mx6q = "virtual/libgl"
+PROVIDES_remove_mx6dl = "virtual/libgl"
+PROVIDES_remove_mx6 = "virtual/libgles1 virtual/libgles2 virtual/egl"
+
+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
 }