Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 77E2CE00C98; Mon, 4 Jan 2016 09:46:42 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [157.56.112.61 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0061.outbound.protection.outlook.com [157.56.112.61]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8E1A0E00C98 for ; Mon, 4 Jan 2016 09:46:40 -0800 (PST) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=neenareddy.busireddy@nxp.com; Received: from change-01.am.freescale.net (192.88.168.50) by VI1PR04MB1584.eurprd04.prod.outlook.com (10.164.84.142) with Microsoft SMTP Server (TLS) id 15.1.361.13; Mon, 4 Jan 2016 17:46:38 +0000 From: Neena Busireddy To: Date: Mon, 4 Jan 2016 11:45:14 -0600 Message-ID: <1451929515-2632-4-git-send-email-neenareddy.busireddy@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1451929515-2632-1-git-send-email-neenareddy.busireddy@nxp.com> References: <1451929515-2632-1-git-send-email-neenareddy.busireddy@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.88.168.50] X-ClientProxiedBy: SN1PR07CA0021.namprd07.prod.outlook.com (25.162.170.159) To VI1PR04MB1584.eurprd04.prod.outlook.com (25.164.84.142) X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1584; 2:xMoyXbtJ6+pAZLq5SvyC8ZRWKWwSkEM0ywC0Rag4AYUGU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lsVaOiACSnU6OjYAr3+tQdRm4GvAroClpw6BoqF70pZTcu20Fk+qRZTM X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001); SRVR:VI1PR04MB1584; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1584; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1584; 4:tm6OEOK8AKr85mlti+aPQ/l1xVbcJI5gxp3s0C4LGOaUPNVvMroNHsGeit0MPxY7hvSPxsHgCHIT35qNfYxF4rjQfzAYM4bDAuAWoUWeOHpY/knZnQ4AfT0koV6yEiIxLIIOfgV3QZykr2f5CrWsR1m38bpLnSCXBK9nd2VdsG9tRzP79DS40wd0Ig1jXyEHl1EHAfS/1x+MyxivXRjR6KC0x5n804BfAtyS29KEmmQvtM30o7YGQy1/qQIGk8bvi6lFO1Rk1QQxltM139nwpQ73B5iTFB9gSD5m6D7ca6mHfYOQ8os5WOxOPGvYI9x9j6eTeOSyEw6N15sFaGNx2I0uMN6NQcgtGLpddzpmXfVNuCRXk+X/W77HZkEbX6ieem7hq16Soyh+3t1lOqVtawpXvAGochFFqkW+W6gpAlZx21Izjg1rwNGsfAchkB05MURaOoZMngj4InYe9rSJzA== X-Forefront-PRVS: 08118EFC2B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(50466002)(87976001)(106356001)(229853001)(110136002)(189998001)(2351001)(66066001)(33646002)(2950100001)(50986999)(230783001)(4326007)(5008740100001)(105586002)(19580395003)(5001960100002)(50226001)(19580405001)(76176999)(77096005)(42186005)(122386002)(40100003)(92566002)(586003)(86362001)(3846002)(36756003)(1096002)(6116002)(48376002)(97736004)(101416001)(81156007)(5003940100001)(5004730100002)(47776003)(7059030)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1584; H:change-01.am.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR04MB1584; 23:iqbu4b4wA+wqz54IXGWvolBWGk58h091i4QVTloI7?= =?us-ascii?Q?WXevGlOW7iXKJqWiUQFUP+bHS5CJ9f2Hj0+2sEuWpOPCHL7UeV4B1U9zrp/u?= =?us-ascii?Q?QUPHRpMmSyxDOQCUENvOWOIRPsg9DawKc4K5geG6qB6hJ5bFMSqTyyEvLziE?= =?us-ascii?Q?x38fd+5iH0ZauAfupLEQmuWTbT4oAG01Oqpe4dztoG1dXV8/iwm92nNOdg0i?= =?us-ascii?Q?VFW1IhBL6VTFzFkjtftjuL6lr2uRNxfdyAZGeyWMBqzuAwqsIZXf3zJmFxDk?= =?us-ascii?Q?Gfl3Aehl1wU+27FB+CLwln0fRmNtW2vYykGVOMkYznscBF3ChkI8zSngSK32?= =?us-ascii?Q?meH14JOJHLtnR/PSMCdY1PbtTH45Hes4DRxSXIW8+TMaB0QVRbtxqdV4h/N8?= =?us-ascii?Q?rzi7OnNPyhQzSUUL0zCMjOJw57fkUXog/CD8wimgkNvRHguk1HWkvTHbrfaj?= =?us-ascii?Q?zu1WI3KJhNqxE1Fbj5+nntwWHw2xPeXr/5/awVEloRqcKdWBWoZZHGU0F/qf?= =?us-ascii?Q?aLUWT3IXvAxRHqZ47u/EWUEoLePnQJDBnqNrpu+vjZjE+OYhFu8pxFAu8O4Q?= =?us-ascii?Q?Vgg/ubRL55NhVzVHjH58CIWCOzWtDIOZbeolusXJnrwhc3fIF0RM3WrJnJA9?= =?us-ascii?Q?x+mP+4yexeFc4mmeFVLNDzlnG3d9d8kdHarCbGSpd+PReUxz3v+DqMiHogpM?= =?us-ascii?Q?GJYptEG3umPSxVcmLu2bKTb/ZPv+alQRghsJ+RG0XRd4r8IryuP4ANLHHqpo?= =?us-ascii?Q?C0nkj4X9+Sg8s/+DMlD73bmBpB9IM67hKRETRBpQr7X16K9tuozXmKd3qdAe?= =?us-ascii?Q?vT9FHweiUES86cFUtIwGVX3zlOjLCgVBN5L/ed9byqSh9l9uogHFBMb/gexI?= =?us-ascii?Q?WzOiOectvAvpjwEpdemjwFdF3qCMc9grMvF0h5DDoa9BvhXhTTtDvLXmyN5O?= =?us-ascii?Q?iL31BnDNxd/4PPhIk8WztPNnNkU+Z0jZ4QlSzCze8RVatidlXrgrpZRgcMo8?= =?us-ascii?Q?Zh20I4MZWsR5EwJc0ogcYVqQzJ7QfqSRJp67YtuR88s6N44HCGD86g2eFNjk?= =?us-ascii?Q?jqdjJO/6klZhDocJ2enSNNT2es7dW9O/YGQB+W4YnhZhxpEIKj5e2lDyM4nM?= =?us-ascii?Q?3umrHVcrvk=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1584; 5:I5GfD5wdtnNXAFBiqKIM2ZTvvpbk03TkRpnelOZ8MvDvfHjBIiQxEUHsdZxm6Mn4ln9FwcO26iS6UrRpzqSpha8PFRgDnI0VcOK3wggq2U07CP/ucgdt2IphfnNog8dJnsblUUkd4meESE9CdmVkTA==; 24:/3dEX+BSp+RzPiGcLYm9FG+4no6k4Y1yzNyh0FLcXxcqeWUsKpFBYB+aKOH9roDiV6CHNjgYjdheWIRSr730lVmPsq3wRyw21Phicmxy3xI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2016 17:46:38.1684 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1584 Subject: [meta-fsl-arm][PATCH v2 4/5] weston: Add patches to fix bugs 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: Mon, 04 Jan 2016 17:46:42 -0000 Content-Type: text/plain From: Neena Busireddy - Patch to fix setenv and clear environments. - Patch to fix screen blur for Qt5 CinematicExperience. Signed-off-by: Neena Busireddy Signed-off-by: Neena Busireddy --- ...GS-1235-Fix-setenv-and-clear-environments.patch | 41 ++++++++++ ...x-for-Qt5_CinematicExperience-will-meet-s.patch | 93 ++++++++++++++++++++++ recipes-graphics/wayland/weston_%.bbappend | 5 +- 3 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 recipes-graphics/wayland/weston/0004-MGS-1235-Fix-setenv-and-clear-environments.patch create mode 100644 recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch diff --git a/recipes-graphics/wayland/weston/0004-MGS-1235-Fix-setenv-and-clear-environments.patch b/recipes-graphics/wayland/weston/0004-MGS-1235-Fix-setenv-and-clear-environments.patch new file mode 100644 index 0000000..e4f8cd9 --- /dev/null +++ b/recipes-graphics/wayland/weston/0004-MGS-1235-Fix-setenv-and-clear-environments.patch @@ -0,0 +1,41 @@ +From d09d0595b472d6bae35e78272fc670d494f6e408 Mon Sep 17 00:00:00 2001 +From: Prabhu +Date: Tue, 17 Nov 2015 22:00:42 -0600 +Subject: [PATCH] MGS-1235 : Fix setenv and clear environments + +When setenv is set with parameter null causing crash. +Fixed with unsetenv to restore to previous state + +Date: Nov 17, 2015 +Signed-off-by: Prabhu + +-1235 +--- + src/compositor-fbdev.c | 11 ++++++++++- + 1 file changed, 10 insertions(+), 1 deletion(-) + +diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c +index ed25576..c6b8e5a 100644 +--- a/src/compositor-fbdev.c ++++ b/src/compositor-fbdev.c +@@ -598,7 +598,16 @@ fbdev_output_create(struct fbdev_backend *backend, + fprintf(stderr, "failed to create window\n"); + return 0; + } +- setenv("FB_FRAMEBUFFER_0", fbenv, 1); ++ /* restore the previous value*/ ++ if(fbenv != NULL) ++ { ++ setenv("FB_FRAMEBUFFER_0", fbenv, 1); ++ } ++ else ++ { ++ unsetenv("FB_FRAMEBUFFER_0"); ++ } ++ + + if (gal2d_renderer->output_create(&output->base, + output->display, +-- +2.5.1 + diff --git a/recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch b/recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch new file mode 100644 index 0000000..82d3798 --- /dev/null +++ b/recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch @@ -0,0 +1,93 @@ +From 515b1f1c1902ae22914a93982935e2328d2240d2 Mon Sep 17 00:00:00 2001 +From: Yong Gan +Date: Thu, 19 Nov 2015 15:30:24 +0800 +Subject: [PATCH 2/2] MGS-1252: Fix for Qt5_CinematicExperience will meet + screen blur + +When the Qt5_CinematicExperience is created, window creates with 1920x1080 +and the starting coordiantes more than screen coordinate. +Ths cause access beyond the surface and system hang on lcd display + +Date: Nov 18, 2015 +Signed-off-by: Prabhu +--- + src/gal2d-renderer.c | 30 ++++++++++++++++++------------ + 1 file changed, 18 insertions(+), 12 deletions(-) + +diff --git a/src/gal2d-renderer.c b/src/gal2d-renderer.c +index c68f02c..6e7d640 100644 +--- a/src/gal2d-renderer.c ++++ b/src/gal2d-renderer.c +@@ -661,12 +661,11 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 + gcsRECT srcRect = {0}; + gcsRECT dstrect = {0}; + gctUINT32 horFactor, verFactor; +- int useStretch =1; + int useFilterBlit = 0; + gctUINT srcWidth = 0; + gctUINT srcHeight = 0; + gctUINT32 srcStride[3]; +- gceSURF_FORMAT srcFormat;; ++ gceSURF_FORMAT srcFormat; + gctUINT32 srcPhyAddr[3]; + gctUINT32 dstPhyAddr[3]; + gctUINT dstWidth = 0; +@@ -702,14 +701,16 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 + srcRect.right = ev->surface->width; + srcRect.bottom = ev->surface->height; + +- if(useFilterBlit) ++ dstsurface = go->nNumBuffers > 1 ? ++ go->renderSurf[go->activebuffer] : ++ go->offscreenSurface; ++ gcmVERIFY_OK(gcoSURF_GetAlignedSize(dstsurface, &dstWidth, &dstHeight, (gctINT *)&dstStrides)); ++ gcmVERIFY_OK(gcoSURF_Lock(dstsurface, &dstPhyAddr[0], gcvNULL)); ++ gcmVERIFY_OK(gcoSURF_Unlock(dstsurface, gcvNULL)); ++ ++ if(galIsYUVFormat(srcFormat) == gcvSTATUS_TRUE) + { +- dstsurface = go->nNumBuffers > 1 ? +- go->renderSurf[go->activebuffer] : +- go->offscreenSurface; +- gcmVERIFY_OK(gcoSURF_GetAlignedSize(dstsurface, &dstWidth, &dstHeight, (gctINT *)&dstStrides)); +- gcmVERIFY_OK(gcoSURF_Lock(dstsurface, &dstPhyAddr[0], gcvNULL)); +- gcmVERIFY_OK(gcoSURF_Unlock(dstsurface, gcvNULL)); ++ useFilterBlit = 1; + } + else + { +@@ -739,7 +740,7 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 + dstrect.right = bb_rects[0].x2; + dstrect.bottom = bb_rects[0].y2; + +- if(dstrect.right < 0 || dstrect.bottom < 0) ++ if(dstrect.right < 0 || dstrect.bottom < 0 || dstrect.left > dstWidth || dstrect.top > dstHeight) + { + break; + } +@@ -829,8 +830,7 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 + } + else + { +- if(useStretch) +- gcmVERIFY_OK(galGetStretchFactors(&srcRect, &dstrect, &horFactor, &verFactor)); ++ gcmVERIFY_OK(galGetStretchFactors(&srcRect, &dstrect, &horFactor, &verFactor)); + + if(verFactor == 65536 && horFactor == 65536) + { +@@ -839,6 +839,12 @@ repaint_region(struct weston_view *ev, struct weston_output *output, struct gal2 + } + else + { ++ dstrect.right = dstrect.right < dstWidth ? dstrect.right : dstWidth; ++ dstrect.bottom = dstrect.bottom < dstHeight ? dstrect.bottom : dstHeight; ++ srcRect.right = srcRect.right < dstWidth ? srcRect.right : dstWidth; ++ srcRect.bottom = srcRect.bottom < dstHeight ? srcRect.bottom : dstHeight; ++ ++ gcmVERIFY_OK(galGetStretchFactors(&srcRect, &dstrect, &horFactor, &verFactor)); + /* Program the stretch factors. */ + gcmVERIFY_OK(gco2D_SetStretchFactors(gr->gcoEngine2d, horFactor, verFactor)); + +-- +1.9.1 + diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend index a7496da..6c8ba6d 100644 --- a/recipes-graphics/wayland/weston_%.bbappend +++ b/recipes-graphics/wayland/weston_%.bbappend @@ -1,6 +1,9 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI_append_mx6 = " file://0001-MGS-840-Add-i.MX6-support-for-weston.patch" +SRC_URI_append_mx6 = " \ + file://0001-MGS-840-Add-i.MX6-support-for-weston.patch \ + file://0004-MGS-1235-Fix-setenv-and-clear-environments.patch \ + file://0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch" PACKAGECONFIG_append_mx6q = " cairo-glesv2" PACKAGECONFIG_append_mx6dl = " cairo-glesv2" -- 1.9.1