Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8069EE00D40; Mon, 4 Jan 2016 07:57:59 -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.87 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-am1on0087.outbound.protection.outlook.com [157.56.112.87]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C1DE9E00D15 for ; Mon, 4 Jan 2016 07:57:56 -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 VI1PR04MB1583.eurprd04.prod.outlook.com (10.164.84.141) with Microsoft SMTP Server (TLS) id 15.1.361.13; Mon, 4 Jan 2016 15:57:54 +0000 From: Neena Busireddy To: Date: Mon, 4 Jan 2016 09:56:22 -0600 Message-ID: <1451922983-32737-4-git-send-email-neenareddy.busireddy@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1451922983-32737-1-git-send-email-neenareddy.busireddy@nxp.com> References: <1451922983-32737-1-git-send-email-neenareddy.busireddy@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.88.168.50] X-ClientProxiedBy: CY1PR08CA0007.namprd08.prod.outlook.com (25.163.94.145) To VI1PR04MB1583.eurprd04.prod.outlook.com (25.164.84.141) X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1583; 2:7RtEyJZETy7mqWYo2o3aq+dU37r6G0NvEImscO0jPBSXwGKa/B2l9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HNfW6+qWVdVshu9UBFwmm4QXPWCBhklJcad+fZw5khY 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:VI1PR04MB1583; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1583; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1583; 4:RL3tuW+re4jKBaJFsNzr2mcXtdcwq3BbI4SGYOuCjxPJ8LfMTRQR6tXX4IsLvNIcCf3oDlHIFnnLKlECAwfM/7+1sOzBqWAgX/GtYj58pnRALvoAr1Bgbf0MGNjeYJxmH/x2HR0uBhA2EA7NiNVl6kL+Z1nA85B7NkKJXpNYIHnCwwHbWd2fMpR55UzEc3Tsr0Skbk8mnN9gfP5MrKckyDceGpFReol5dRYWSQlziS27NkGHtJXHd6qRfknAYzBBfaj9sHUiB+FAc13K/RJIxAJrsp8kTA5cLgYrMdkVROrxUt5nu4fYAadlRVurxdLkJ5zNmbWgPSAPuHq2CDy8U6XwJbdh6OorUjhkaCZWsYP/yXFKSmPb9Twm4wlShMrEx5wXqYXtzmgR5H7PYbuJjTcD/xTwXEABGyj0cRKXtyNkqU/ffioPoIaskiRiKm2Fq094TqTrKFzvOz4KcGfBiw== X-Forefront-PRVS: 08118EFC2B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(19580395003)(77096005)(50226001)(87976001)(3846002)(122386002)(47776003)(50986999)(66066001)(6116002)(86362001)(81156007)(5001960100002)(19580405001)(76176999)(189998001)(5004730100002)(110136002)(92566002)(1096002)(229853001)(50466002)(101416001)(2950100001)(4326007)(2351001)(48376002)(40100003)(230783001)(33646002)(5003940100001)(97736004)(586003)(5008740100001)(42186005)(106356001)(36756003)(105586002)(7059030)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1583; H:change-01.am.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; VI1PR04MB1583; 23:flY50clgG5svlt54UiGOwCUzLFXa+h5d9YCwIvlOV?= =?us-ascii?Q?Ldh+RkjbLaMCWFYg0ZJFfYVIS7fyMb0G2Eo+AvQ0H+J+hHojq5gmGTFn7W+s?= =?us-ascii?Q?II7tXPpIxnLfGLhXktQdNnDtZXohczQQPa/amPyLr095RRKnXwHRMoFLlgtl?= =?us-ascii?Q?fsphRewv6AsbuSuo6fGrNXPzWkVEMTinYchhdUMycx2vCv78omZkI4VTDmeQ?= =?us-ascii?Q?KuDOoNGMjv8B+rrD71R+z/sBvnq9qYQUHKF7PVaUBOXXSkLCp5mOm1TsM8y2?= =?us-ascii?Q?wu+WBsGi6eipQOPUfmSALzjRuY7E0iNkk2OcsSJjzPGvRZULWbcv/hZyTWL0?= =?us-ascii?Q?DxhlaZvmbWDBJbPocNt8vBvTQJMuhVg8Hao2D6u/6wJ+Dm2mepSv6OT5HZgL?= =?us-ascii?Q?DiIl64czPWGqV9MWiypFBR3WtcdfSbBuaiDgKjl1/rkyarT5Wtk3TS95/UkE?= =?us-ascii?Q?449NImVJnEN3ypZabDjbZ3ldeAmVc4W03mOYJo9X2V0myyaaUEUikRkbRbGf?= =?us-ascii?Q?bzzfkcHdm2MGo83l0KPQI8x5lZ2q82V1b4WVG8MnYcIUVcBkm84T0DNobQlB?= =?us-ascii?Q?0uouOsJAg9h91j+K7Bo3zpmrLSUCBtbYGGVGQjlzMfkd0GM06jhXoIpR3WbY?= =?us-ascii?Q?Jo4t9+/tNmAkUnYaZ8BnYRw5ms2YFDDYBHcFfGOXDuu0k0N9vQ4wD+Cp3hYI?= =?us-ascii?Q?h9KKVMua+vmK2Q/DeLui4R6nw3BwiK4rawbm54hI98iK00Q+hW+g7A6fbnMU?= =?us-ascii?Q?DyePXIMRA3WSyPcQ9NsDynahyhlXLEjvCI5mW9RHDp5yyeXe6nzmWayzpWpL?= =?us-ascii?Q?oEotkrHXSaHULfPiqUso+KWlmBd+hGVrw0ulX9pRiK9hOI99pOBbK1I/RyUI?= =?us-ascii?Q?Nk80am85NGLhS//2MoujDZc7FkQbPcHdiRpxNrpi+FyedsinZr3txH5yZw8T?= =?us-ascii?Q?iY5uO/D5Y1u7sjBNLOIAJQWt3C1+ZO0pfnQDHjrTO8iGUQ4KEGMcWd0PhGDP?= =?us-ascii?Q?h6O4bYAQbwAZRbK09z4jX7DrXQ7xT0CYop9VA1MhsUBMOEpowrfC++04gY7y?= =?us-ascii?Q?kP6Gh3ypnRmy7aePqoVeUMBKm3Dv6et6iyvcd1susJcPXrfNR1oSXQh+gP7T?= =?us-ascii?Q?+YtksXkmrE=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1583; 5:SNCHNOs0R1CtSpBkpiPNMuh/qybVX11yOG7sN9twQZvkfO9E9utu0q4suQA6XmImWHwZXNo5VT/++9WwW26TQlAP833nGXEdOEztEIGkQzRgarnJ4htJU4gnKuhjPKnKn8RYV2Xs4/A0AbW80MIW7g==; 24:yeHSkxusrmUkzSPjxLURSJytrTRlknhV6mY6t4q6kvH0QnKkTkVRwqeVpZ37p41MGSAvpxzZhlYyMaWCOXAP0EB1xo/5uVRYpbzBTzNMkGM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2016 15:57:54.2549 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1583 Subject: [meta-fsl-arm][PATCH 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 15:57:59 -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