Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 927F1E00D35; Tue, 6 Sep 2016 09:14:50 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.217.194 listed in list.dnswl.org] * 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.217.194 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-ua0-f194.google.com (mail-ua0-f194.google.com [209.85.217.194]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EB243E00D31 for ; Tue, 6 Sep 2016 09:14:48 -0700 (PDT) Received: by mail-ua0-f194.google.com with SMTP id u68so2287205uau.2 for ; Tue, 06 Sep 2016 09:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:mime-version:in-reply-to:references:date:message-id:subject:to :cc; bh=pg/XkpPpYN7fEJ7+nNz+QpHbuM7l/2izaWDFh4IHwgM=; b=l1csWcDyENUSpF6ctLsmwIow20suW/dV0tpbawAWBNWwOlEdhvIq3YlNFc9bZdzAv6 gSvG718l82nLoPzY7CP4QgpCXXKpC5uC+QJ6xoi17hduW+st7ahTwOnuwfpxGm9oAzaR mpwlDOgpcLoB09S0hR4jWEVlTBbhUn5nOVEd9djAJjleRzi/4mMs3QHZFSkaN+Abt+QY 2d/jTd/OeDqzFWndN6mVtkXoVyVGlFBtPZuwjFt5Vz7wajA3NlFhQkOxJoUGA0OgzfpJ fBvAoBqI52ZDRS0BU4uU8SEdjQaQkmHSWw307o4puBYWwXtJ5zWYaGraL6dzH6Ibqaxt NYnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:in-reply-to:references:date :message-id:subject:to:cc; bh=pg/XkpPpYN7fEJ7+nNz+QpHbuM7l/2izaWDFh4IHwgM=; b=i4pYgatjjSSurVPRXrGcwOYmRNqS9seavoMDVr3eBVH8B6YQEYU5fvCtOR7NXhSoMu MnzkQXBc2tnYgABmjmNwrZHyI3CE6v/RknzfDmvPojEwho3PhzqqJE3r5TjrHUIHjBhS RAuXzuz5bPZ16ax2oEfIJlPxb7BdBR5qNzvPLoJ94Y8vkpTp3i/7P7CKRkUk79Pgl6FW 4jgn444ZFDh4GWc+UXrkvH3utWAMBET30b6ah9YElzEuHCgsZDx8CbBs4E/GHoUPSdcb C3p6EUoZEhaaX9n80gQ2NJrCl7mxTScYh6fK9ATOv/ijkRFHPMQrPXLBzlAMeYbNPjbC UK/A== X-Gm-Message-State: AE9vXwMNBwIr/OBbsccQfTBuJBH1Ql0JMp5aIt6AWWHDgPN7EpFVsIxzxmyV3nIvv/HEUg== X-Received: by 10.176.82.101 with SMTP id j34mr25480727uaa.22.1473178487397; Tue, 06 Sep 2016 09:14:47 -0700 (PDT) Received: from mail-ua0-f181.google.com (mail-ua0-f181.google.com. [209.85.217.181]) by smtp.gmail.com with ESMTPSA id 199sm5230185vkl.1.2016.09.06.09.14.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Sep 2016 09:14:46 -0700 (PDT) From: Otavio Salvador X-Google-Original-From: Otavio Salvador Received: by mail-ua0-f181.google.com with SMTP id 71so10728150uag.2 for ; Tue, 06 Sep 2016 09:14:46 -0700 (PDT) X-Received: by 10.176.83.110 with SMTP id y43mr22490006uay.70.1473178485898; Tue, 06 Sep 2016 09:14:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.154.68 with HTTP; Tue, 6 Sep 2016 09:14:45 -0700 (PDT) In-Reply-To: References: <20160901222043.18942-1-otavio@ossystems.com.br> <20160901222043.18942-12-otavio@ossystems.com.br> Date: Tue, 6 Sep 2016 13:14:45 -0300 X-Gmail-Original-Message-ID: Message-ID: To: Tom Hochstein Cc: Otavio Salvador , Prabhu Sundararaj , meta-freescale Mailing List , White Weng Subject: Re: [meta-fsl-arm PATCH v2 11/16] imx-gpu-viv: Refactor code to use the new overrides X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2016 16:14:50 -0000 Content-Type: text/plain; charset=UTF-8 On Tue, Sep 6, 2016 at 12:04 PM, Tom Hochstein wrote: >> From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br] >> Sent: Tuesday, September 06, 2016 9:54 AM >> To: Tom Hochstein >> Cc: Otavio Salvador ; meta-freescale Mailing List ; Neena Busireddy >> ; Daiane Angolini ; Prabhu Sundararaj ; >> Zhenhua Luo ; White Weng ; Lauren Post >> Subject: Re: [meta-fsl-arm PATCH v2 11/16] imx-gpu-viv: Refactor code to use the new overrides >> >> On Tue, Sep 6, 2016 at 11:23 AM, Tom Hochstein wrote: >> >> From: Otavio Salvador [mailto:otavio@ossystems.com.br] >> >> Sent: Thursday, September 01, 2016 5:21 PM >> >> >> >> The recipe has been reworked to use the 'imxgpu2d' and 'imxgpu3d' >> >> feature overrides. While on that, the i.MX6SL specific code has been >> >> reworked to used when only 2D GPU support is available. >> >> >> >> Signed-off-by: Otavio Salvador >> >> --- >> >> >> >> Changes in v2: None >> >> >> >> recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 13 ++++++------- >> >> 1 file changed, 6 insertions(+), 7 deletions(-) >> >> >> >> diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc >> >> index e99c4a1..8536461 100644 >> >> --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc >> >> +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc >> >> @@ -13,9 +13,7 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxd >> >> libpng" >> >> >> >> EXTRA_PROVIDES = "" >> >> -EXTRA_PROVIDES_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2" >> >> -EXTRA_PROVIDES_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2" >> >> -EXTRA_PROVIDES_mx6sx = " virtual/libgl virtual/libgles1 virtual/libgles2" >> >> +EXTRA_PROVIDES_imxgpu3d = " virtual/libgl virtual/libgles1 virtual/libgles2" >> >> PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}" >> >> >> >> PE = "1" >> >> @@ -94,8 +92,8 @@ python __anonymous() { >> >> d.appendVar("RCONFLICTS_" + fullp, pkgs) >> >> } >> >> >> >> -IS_MX6SL = "0" >> >> -IS_MX6SL_mx6sl = "1" >> >> +IMXGPU_imxgpu3d = "3d" >> >> +IMXGPU_imxgpu2d = "2d" >> > >> > I thought the 'bare' variable was required as well, no? >> > >> > IMXGPU = "" >> > >> > Otherwise, I'm not sure if I understand the logic of the 2d/3d overrides. It looks like the intent is that we will have two cases, either 2d >> only or 2d and 3d, right? Perhaps a variable name change would make this logic a bit clearer: >> >> Only if it is possible to have other value and this is not the case here. >> >> > IMXGPU2D_ONLY = "yes" >> > IMXGPU2D_ONLY_imxgpu3d = "no" >> >> IMXGPU = "2d" or "3d" is clear enough no? >> >> >> do_install () { >> >> install -d ${D}${libdir} >> >> @@ -182,8 +180,9 @@ do_install () { >> >> find ${D}${libdir} -name "*.$backend.so" -exec rm '{}' ';' >> >> done >> >> >> >> - # FIXME: MX6SL does not have 3D support; hack it for now >> >> - if [ "${IS_MX6SL}" = "1" ]; then >> >> + # FIXME: For 2D only GPU, we need to remove some content which is >> >> + # 3D specific. >> >> + if [ "${IMXGPU}" = "2d" ]; then >> >> and this is also clear here. > > The logic looks like 'gpu has 2d', but In fact what it is doing is 'gpu does not have 3d', right? This is not clear at all. This is a HACK! and ought to be fixed by the GPU Team; ideally we should have different tarballs or subdirs for it. I used same logic here as I did in Qt Base recipe. -- 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