Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 9A9EFE00D5D; Mon, 4 Jan 2016 08:00:44 -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.59 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-am1on0059.outbound.protection.outlook.com [157.56.112.59]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 69517E00D7E for ; Mon, 4 Jan 2016 08:00:11 -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 AM4PR04MB1569.eurprd04.prod.outlook.com (10.164.78.139) with Microsoft SMTP Server (TLS) id 15.1.361.13; Mon, 4 Jan 2016 16:00:08 +0000 From: Neena Busireddy To: Date: Mon, 4 Jan 2016 09:58:49 -0600 Message-ID: <1451923129-369-1-git-send-email-neenareddy.busireddy@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [192.88.168.50] X-ClientProxiedBy: BLUPR11CA0017.namprd11.prod.outlook.com (10.141.240.27) To AM4PR04MB1569.eurprd04.prod.outlook.com (25.164.78.139) X-Microsoft-Exchange-Diagnostics: 1; AM4PR04MB1569; 2:0wIXt44kufxSr3PynpLpHdJ+HUgyPg1GQq0YMvG1QpU/mJ6jVtvpXliVqgT2DM2RjF8zseUV8gnoNvNheEcB2tGYLsh2eNegRKmgmOrHm9lRpIIWfa7v6Q6D5p2naU8jxty/TWldUKG+QPyMuI+rbA==; 3:18wSNW0FoXlDFVfepgrULtW/L3yplNabMK6K27GUXb6YJBJf0Jsyw1/b7l71qNzL+wuIcpaVeC1w9J5HH43kkTdnIn4yC0eiGEWB4wsXU4AKkCTjHmEKVIFvUWljlgFv; 25:IRfem9htTK/qgByz4T3iLEnYqy4qX+WhF3TK2GLYxHS/LU4ARXSktcbe+JU1cJVoc579aX91l01AKJ6qvAsXFnWHmQrFJvsRdg1O+32pDslm7rOvJ97RMS9D1EjlgPSiE95grSwOShcNpWE0A6qpxa4104C0en/0AlGxUHwFsmALBd7+hzW5Ry0bx/5/VGSKA5i5AUQWLRM6hvh+jHhml97mwmanoYlo2no6HXk2+IZBITSqX5bSjiTJyJ8yoYrYAtiMvesVgIjBLFgQmOhyEw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM4PR04MB1569; X-Microsoft-Exchange-Diagnostics: 1; AM4PR04MB1569; 20:RBRJPw4EYhvxLwNIAesdMJfiMWtY3oqUWukRJ6wzwQiuR4oEd9QIhsvhtCXr44C13MinBGVlrIf+FeQ668mrFIn2afKdGXrpMhMntSCn7fc9nksviUhxyfkJoTrHWbKKhOg0oXCFU0fp6+yq8WLPZG7qKjazG5vCwdDpJpT2L9d/96MllAove9LwV0DxoEv7L3uYx+Du2UY3ljMWo6LZtL+FMtTAJV2HN7N29nC0buKdA7H+WwhwrYgkmsaZhHKRTDhtjVfD4IIpmVjNjygbgsALnti1VIkjDgh/KhejFHRFa/01lNSXdr5OuiW3ACt1i7+fQnJQ9F2rSQGnpx9zFH3O5QrjyAaXcXnr9joDQqZpvBydfpPfUjHHsFgdoEwHqNdpQal0/zClex3HF2RdXJRTVHpCXEbIXhWXEhjv9O0O9xOJRGtB+LGWZBS5IMZ6uSIvJI4TEU5M3r8F4kshb9R8pzLx4kBGC1aPUeAMEvOhxP31fcF5Dmwi68RsY7aV 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:AM4PR04MB1569; BCL:0; PCL:0; RULEID:; SRVR:AM4PR04MB1569; X-Microsoft-Exchange-Diagnostics: 1; AM4PR04MB1569; 4:lF3sGXDJltGyXjdswK7KYw+Fza0l0mfe/pyqwSkh98FqnVIMmhmO3on0g9MSy2wE/kkk1lsURDDApLccwltnl+lAMCjJGV0j3VCzAaZjJOW71POqSwksJ/Zu8Bra9byTg+oyvAvDqaP9X0k5A5RkkeePBDMFBDZaVDxX8deTs9iSGcGNj+ym4fiz+tr5S/66cGkqwTIjlOF67wCVL6RKPI3ATbKT3UjevDeZqhWd2S5Uvidn88N0CLDKHhK42kQ81MNjKzkRpLtGbpSXP/5DTXLPWjqAhsjTS+1Db+/gISidEUpjjvFgYnjPFJ1JfkNzvu2ycAfxyWfZuPr/BNQNCCQ46clDs2OQM4MznwEDtSZGl4TseBJMdaTheCayYOTIkwsKVawSBhU77ofvXOZxrdsNg3MWklA/RHHQYnZgYhgk9CESBdualXYPnR2AsWetGGuEkAxHgjypMrJqNmkz/A== X-Forefront-PRVS: 08118EFC2B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(377424004)(33646002)(3846002)(575784001)(105586002)(586003)(4001150100001)(101416001)(50986999)(110136002)(42186005)(86362001)(15975445007)(36756003)(47776003)(4326007)(92566002)(106356001)(5003940100001)(15395725005)(66066001)(2351001)(230783001)(6116002)(50466002)(8558605004)(97736004)(77096005)(5001960100002)(19580405001)(229853001)(122386002)(19580395003)(87976001)(48376002)(5008740100001)(81156007)(5004730100002)(1096002)(40100003)(50226001)(189998001)(7059030)(19623455008)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR04MB1569; 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; AM4PR04MB1569; 23:cmBKnmSVkjjxyw2ADCz7z23SzWIH7TnVbJ4A2oplH?= =?us-ascii?Q?VjegiF7XAOFMeNqZjtdstEykZKqAdXklE0qS/GRxyIN174GIhIIfS95eLY1T?= =?us-ascii?Q?kwJQxsdRlxlZlHO1u2gY1SqIf1YoF+RCqb/JqBa6uKF8FK+aLqKw89LJj9lt?= =?us-ascii?Q?xQQqvfmsn1p98/s9STy2IuwUgQhfLWUOtYvTSuLqieOdC1y1XHpe7ZkGwNtu?= =?us-ascii?Q?+pUCvGqEsRzLS7clNMIyAx8GCZlCmnrQGASqv7ztp7dCiK24w8GHn3tjMVLx?= =?us-ascii?Q?ji8DzJQKWJ/qI7UDDMD4fd7/fY2IamA4yZ4h4RdPc9myj5wSsmX9bM4QfN3L?= =?us-ascii?Q?c6pEaDvsaPd2vV4hlzRcw+W5Qanxr9kibwI50wnV2dpV+vUincbXubVjLuKw?= =?us-ascii?Q?dq9T0LAnhBGMz1a6WrbCtvYfABjbOz8mUU8oGa9VCUVILvtFOPoTLW51Tgco?= =?us-ascii?Q?j88DRwxGwSSPsUMdlhdYgZM0thAX+EQhjgS+3Nrb+YH/B78VS2K+kgySreRN?= =?us-ascii?Q?TpYYAYHviGdOiuDOCdvwyQNEWcd0aVoDZjNGNd4TqiWiFe9Ha65ARuQjVGwe?= =?us-ascii?Q?bO/+Asf/2S2KJsHL2Fn3sfECtrtrYTUmGBcu5aWqWZiPQPtcDeXuk/rI1WIn?= =?us-ascii?Q?4ngeEXR8+0IpLT1voMdGjQ2pvub2E/d9BPJmIira3lNbFQmogI7H55EUCg8X?= =?us-ascii?Q?yEz9hlBOYYXvze3PhPKfiwIODa9u2vkVpJ3RgLm9vBiw2XstsiWEZ79nneee?= =?us-ascii?Q?s3LC8QsO8ex231k6nivxnxxfDfPmPKp3dcHCkRUfQDpmxX01S8LMm33B0Di5?= =?us-ascii?Q?hn3aBJqnkL9sP+3Clleoo6R+/v0ycfGqc+LP7u06eM0tCwZJeCEowOYfN+o+?= =?us-ascii?Q?aWwaxbD2QafUwoCVDXNPtF2amR97HO9eXOj4JukzWJ890xJgbFxduNKUnjQY?= =?us-ascii?Q?PxDDDwlSRsBU2U+7bo7rxPs1fdVZHLiVScVnHqbzNL12YQgnZAh3ztN7u+j4?= =?us-ascii?Q?FA+imEN9nVDXL5OIcj4A9rYIf/GKHwTyH6USk7xW1jG/ye2anlT3egkg0RZf?= =?us-ascii?Q?HkvXkvNKEEd917KkJfT4E7/txfWU24WLcbf5vt4iGTtl9dihcBY9J4dRD2Dz?= =?us-ascii?Q?cqtsdjME59gIipDgqyh2QInyV97URmYMmbLTwNmApdHQCv5vTeKg3T4qJdmQ?= =?us-ascii?Q?r5ndAHUav6Qatut8AbVgeGNFLJz+yXrwFvzq0Iij2la2HqdJCdu5qk3hZTpF?= =?us-ascii?Q?kEm9jswLxHV7t+cKpTtI6cFgTPiJfkShSejNxVC?= X-Microsoft-Exchange-Diagnostics: 1; AM4PR04MB1569; 5:tjV0XlQgKZE2KNOxdiMor8STUHVPnVO2bzUBXQaVulLDyZeNm4g4RFKYPWTOsEqPVCslCEM7juVDSst8/ufkb1OeJxYhmUXBMr4VPpuACjJvq5smGDxebrsnEmD0PXNxLbVrgvXUXED5WQzqPPOMAw==; 24:9kcqxYVVUYJv/g6DabJkJhWi+pyOr6qOkIor60nEu/O31yw2YSO7TmdljYuS1+ykCcVzDekSqQLd7CeVGqvfytspc9FhcNlAlOCZGE6FOPI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2016 16:00:08.6147 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR04MB1569 Subject: [meta-fsl-demos][PATCH] fsl-gpu-sdk: Upgrade to 2.2.1 version 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 16:00:44 -0000 Content-Type: text/plain From: Neena Busireddy This version is released with 3.14.52-1.1.0_ga release - Supports: OpenGL ES2, OpenGL ES3, OpenVG and experimental G2D support - Added recipe for cross-platform image library (devil) as fsl-gpu-sdk is dependent on devil - Do not install VPU packages on processors with no VPU(i.MX6SX) Signed-off-by: Neena Busireddy Signed-off-by: Neena Busireddy --- .../devil/devil/Fix-GCC-5.2-erros.patch | 21 ++ recipes-graphics/devil/devil/M4Patch.patch | 18 ++ recipes-graphics/devil/devil/il_manip_c.patch | 211 ++++++++++++++++++++ recipes-graphics/devil/devil/il_manip_h.patch | 220 +++++++++++++++++++++ recipes-graphics/devil/devil_1.7.8.bb | 31 +++ ...001-update-gstreamer1.0-include-directory.patch | 22 +++ .../{fsl-gpu-sdk_2.1.bb => fsl-gpu-sdk_2.2.1.bb} | 21 +- 7 files changed, 538 insertions(+), 6 deletions(-) create mode 100644 recipes-graphics/devil/devil/Fix-GCC-5.2-erros.patch create mode 100644 recipes-graphics/devil/devil/M4Patch.patch create mode 100644 recipes-graphics/devil/devil/il_manip_c.patch create mode 100644 recipes-graphics/devil/devil/il_manip_h.patch create mode 100644 recipes-graphics/devil/devil_1.7.8.bb create mode 100644 recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk/0001-update-gstreamer1.0-include-directory.patch rename recipes-graphics/fsl-gpu-sdk/{fsl-gpu-sdk_2.1.bb => fsl-gpu-sdk_2.2.1.bb} (66%) diff --git a/recipes-graphics/devil/devil/Fix-GCC-5.2-erros.patch b/recipes-graphics/devil/devil/Fix-GCC-5.2-erros.patch new file mode 100644 index 0000000..b99dfd9 --- /dev/null +++ b/recipes-graphics/devil/devil/Fix-GCC-5.2-erros.patch @@ -0,0 +1,21 @@ +diff -Naur devil-1.7.8_org/include/IL/il.h devil-1.7.8/include/IL/il.h +--- devil-1.7.8_org/include/IL/il.h 2015-12-16 14:31:33.105076974 -0600 ++++ devil-1.7.8/include/IL/il.h 2015-12-16 14:33:47.000000000 -0600 +@@ -63,13 +63,13 @@ + #endif + #endif + +-#ifdef RESTRICT_KEYWORD +-#define RESTRICT restrict +-#define CONST_RESTRICT const restrict ++#if defined(RESTRICT_KEYWORD) && !defined(__cplusplus) ++#define RESTRICT __restrict__ ++#define CONST_RESTRICT const __restrict__ + #else + #define RESTRICT + #define CONST_RESTRICT const +-#endif ++#endif // RESTRICT keyword and not C++ + + #include + diff --git a/recipes-graphics/devil/devil/M4Patch.patch b/recipes-graphics/devil/devil/M4Patch.patch new file mode 100644 index 0000000..ad67adf --- /dev/null +++ b/recipes-graphics/devil/devil/M4Patch.patch @@ -0,0 +1,18 @@ +--- devil-1.7.8/m4/devil-definitions.m4 ++++ devil-1.7.8/m4/devil-definitions.m4 +@@ -244,12 +244,12 @@ + + AC_DEFUN([SETTLE_PNG], + [DEVIL_IL_LIB([png.h], +- [png12]) +- AS_IF([test "x$have_png12" = "xno"], ++ [png]) ++ AS_IF([test "x$have_png" = "xno"], + [DEVIL_IL_LIB([png.h], + [png]) + lib_test_result="$have_png"], +- [lib_test_result="$have_png12"]) ++ [lib_test_result="$have_png"]) + AS_IF([test "x$lib_test_result" = "xyes"], + [MAYBE_OPTIONAL_DEPENDENCY([IL], + [libpng]) ]) ]) diff --git a/recipes-graphics/devil/devil/il_manip_c.patch b/recipes-graphics/devil/devil/il_manip_c.patch new file mode 100644 index 0000000..7bf852c --- /dev/null +++ b/recipes-graphics/devil/devil/il_manip_c.patch @@ -0,0 +1,211 @@ +--- devil-1.7.8/src-IL/src/il_manip.c 2009-03-25 13:30:42.000000000 -0600 ++++ devil-1.7.8/src-IL/src/il_manip.c 2014-05-21 19:09:33.017902907 -0500 +@@ -13,6 +13,208 @@ + #include "il_internal.h" + #include "il_manip.h" + ++ILushort ILAPIENTRY ilFloatToHalf(ILuint i) { ++ // ++ // Our floating point number, f, is represented by the bit ++ // pattern in integer i. Disassemble that bit pattern into ++ // the sign, s, the exponent, e, and the significand, m. ++ // Shift s into the position where it will go in in the ++ // resulting half number. ++ // Adjust e, accounting for the different exponent bias ++ // of float and half (127 versus 15). ++ // ++ ++ register int s = (i >> 16) & 0x00008000; ++ register int e = ((i >> 23) & 0x000000ff) - (127 - 15); ++ register int m = i & 0x007fffff; ++ ++ // ++ // Now reassemble s, e and m into a half: ++ // ++ ++ if (e <= 0) ++ { ++ if (e < -10) ++ { ++ // ++ // E is less than -10. The absolute value of f is ++ // less than HALF_MIN (f may be a small normalized ++ // float, a denormalized float or a zero). ++ // ++ // We convert f to a half zero. ++ // ++ ++ return 0; ++ } ++ ++ // ++ // E is between -10 and 0. F is a normalized float, ++ // whose magnitude is less than HALF_NRM_MIN. ++ // ++ // We convert f to a denormalized half. ++ // ++ ++ m = (m | 0x00800000) >> (1 - e); ++ ++ // ++ // Round to nearest, round "0.5" up. ++ // ++ // Rounding may cause the significand to overflow and make ++ // our number normalized. Because of the way a half's bits ++ // are laid out, we don't have to treat this case separately; ++ // the code below will handle it correctly. ++ // ++ ++ if (m & 0x00001000) ++ m += 0x00002000; ++ ++ // ++ // Assemble the half from s, e (zero) and m. ++ // ++ ++ return s | (m >> 13); ++ } ++ else if (e == 0xff - (127 - 15)) ++ { ++ if (m == 0) ++ { ++ // ++ // F is an infinity; convert f to a half ++ // infinity with the same sign as f. ++ // ++ ++ return s | 0x7c00; ++ } ++ else ++ { ++ // ++ // F is a NAN; we produce a half NAN that preserves ++ // the sign bit and the 10 leftmost bits of the ++ // significand of f, with one exception: If the 10 ++ // leftmost bits are all zero, the NAN would turn ++ // into an infinity, so we have to set at least one ++ // bit in the significand. ++ // ++ ++ m >>= 13; ++ return s | 0x7c00 | m | (m == 0); ++ } ++ } ++ else ++ { ++ // ++ // E is greater than zero. F is a normalized float. ++ // We try to convert f to a normalized half. ++ // ++ ++ // ++ // Round to nearest, round "0.5" up ++ // ++ ++ if (m & 0x00001000) ++ { ++ m += 0x00002000; ++ ++ if (m & 0x00800000) ++ { ++ m = 0; // overflow in significand, ++ e += 1; // adjust exponent ++ } ++ } ++ ++ // ++ // Handle exponent overflow ++ // ++ ++ if (e > 30) ++ { ++ ilFloatToHalfOverflow(); // Cause a hardware floating point overflow; ++ return s | 0x7c00; // if this returns, the half becomes an ++ } // infinity with the same sign as f. ++ ++ // ++ // Assemble the half from s, e and m. ++ // ++ ++ return s | (e << 10) | (m >> 13); ++ } ++} ++ ++// Taken from OpenEXR ++ILuint ILAPIENTRY ilHalfToFloat (ILushort y) { ++ ++ int s = (y >> 15) & 0x00000001; ++ int e = (y >> 10) & 0x0000001f; ++ int m = y & 0x000003ff; ++ ++ if (e == 0) ++ { ++ if (m == 0) ++ { ++ // ++ // Plus or minus zero ++ // ++ ++ return s << 31; ++ } ++ else ++ { ++ // ++ // Denormalized number -- renormalize it ++ // ++ ++ while (!(m & 0x00000400)) ++ { ++ m <<= 1; ++ e -= 1; ++ } ++ ++ e += 1; ++ m &= ~0x00000400; ++ } ++ } ++ else if (e == 31) ++ { ++ if (m == 0) ++ { ++ // ++ // Positive or negative infinity ++ // ++ ++ return (s << 31) | 0x7f800000; ++ } ++ else ++ { ++ // ++ // Nan -- preserve sign and significand bits ++ // ++ ++ return (s << 31) | 0x7f800000 | (m << 13); ++ } ++ } ++ ++ // ++ // Normalized number ++ // ++ ++ e = e + (127 - 15); ++ m = m << 13; ++ ++ // ++ // Assemble s, e and m. ++ // ++ ++ return (s << 31) | (e << 23) | m; ++} ++ ++ILfloat /*ILAPIENTRY*/ ilFloatToHalfOverflow() { ++ ILfloat f = 1e10; ++ ILint j; ++ for (j = 0; j < 10; j++) ++ f *= f; // this will overflow before ++ // the for loop terminates ++ return f; ++} + + ILAPI void ILAPIENTRY iFlipBuffer(ILubyte *buff, ILuint depth, ILuint line_size, ILuint line_num) + { diff --git a/recipes-graphics/devil/devil/il_manip_h.patch b/recipes-graphics/devil/devil/il_manip_h.patch new file mode 100644 index 0000000..53ea091 --- /dev/null +++ b/recipes-graphics/devil/devil/il_manip_h.patch @@ -0,0 +1,220 @@ +--- devil-1.7.8/src-IL/include/il_manip.h 2009-03-25 13:30:42.000000000 -0600 ++++ devil-1.7.8/src-IL/include/il_manip.h 2014-05-21 19:09:33.013902907 -0500 +@@ -31,14 +31,7 @@ + #pragma warning(push) + #pragma warning(disable : 4756) // Disables 'named type definition in parentheses' warning + #endif +-INLINE ILfloat /*ILAPIENTRY*/ ilFloatToHalfOverflow() { +- ILfloat f = 1e10; +- ILint j; +- for (j = 0; j < 10; j++) +- f *= f; // this will overflow before +- // the for loop terminates +- return f; +-} ++ILfloat /*ILAPIENTRY*/ ilFloatToHalfOverflow(); + #if defined(_MSC_VER) + #pragma warning(pop) + #endif +@@ -47,199 +40,10 @@ + // Float-to-half conversion -- general case, including + // zeroes, denormalized numbers and exponent overflows. + //----------------------------------------------------- +-INLINE ILushort ILAPIENTRY ilFloatToHalf(ILuint i) { +- // +- // Our floating point number, f, is represented by the bit +- // pattern in integer i. Disassemble that bit pattern into +- // the sign, s, the exponent, e, and the significand, m. +- // Shift s into the position where it will go in in the +- // resulting half number. +- // Adjust e, accounting for the different exponent bias +- // of float and half (127 versus 15). +- // +- +- register int s = (i >> 16) & 0x00008000; +- register int e = ((i >> 23) & 0x000000ff) - (127 - 15); +- register int m = i & 0x007fffff; +- +- // +- // Now reassemble s, e and m into a half: +- // +- +- if (e <= 0) +- { +- if (e < -10) +- { +- // +- // E is less than -10. The absolute value of f is +- // less than HALF_MIN (f may be a small normalized +- // float, a denormalized float or a zero). +- // +- // We convert f to a half zero. +- // +- +- return 0; +- } +- +- // +- // E is between -10 and 0. F is a normalized float, +- // whose magnitude is less than HALF_NRM_MIN. +- // +- // We convert f to a denormalized half. +- // +- +- m = (m | 0x00800000) >> (1 - e); +- +- // +- // Round to nearest, round "0.5" up. +- // +- // Rounding may cause the significand to overflow and make +- // our number normalized. Because of the way a half's bits +- // are laid out, we don't have to treat this case separately; +- // the code below will handle it correctly. +- // +- +- if (m & 0x00001000) +- m += 0x00002000; +- +- // +- // Assemble the half from s, e (zero) and m. +- // +- +- return s | (m >> 13); +- } +- else if (e == 0xff - (127 - 15)) +- { +- if (m == 0) +- { +- // +- // F is an infinity; convert f to a half +- // infinity with the same sign as f. +- // +- +- return s | 0x7c00; +- } +- else +- { +- // +- // F is a NAN; we produce a half NAN that preserves +- // the sign bit and the 10 leftmost bits of the +- // significand of f, with one exception: If the 10 +- // leftmost bits are all zero, the NAN would turn +- // into an infinity, so we have to set at least one +- // bit in the significand. +- // +- +- m >>= 13; +- return s | 0x7c00 | m | (m == 0); +- } +- } +- else +- { +- // +- // E is greater than zero. F is a normalized float. +- // We try to convert f to a normalized half. +- // +- +- // +- // Round to nearest, round "0.5" up +- // +- +- if (m & 0x00001000) +- { +- m += 0x00002000; +- +- if (m & 0x00800000) +- { +- m = 0; // overflow in significand, +- e += 1; // adjust exponent +- } +- } +- +- // +- // Handle exponent overflow +- // +- +- if (e > 30) +- { +- ilFloatToHalfOverflow(); // Cause a hardware floating point overflow; +- return s | 0x7c00; // if this returns, the half becomes an +- } // infinity with the same sign as f. +- +- // +- // Assemble the half from s, e and m. +- // +- +- return s | (e << 10) | (m >> 13); +- } +-} ++ILushort ILAPIENTRY ilFloatToHalf(ILuint i); + + // Taken from OpenEXR +-INLINE ILuint ILAPIENTRY ilHalfToFloat (ILushort y) { +- +- int s = (y >> 15) & 0x00000001; +- int e = (y >> 10) & 0x0000001f; +- int m = y & 0x000003ff; +- +- if (e == 0) +- { +- if (m == 0) +- { +- // +- // Plus or minus zero +- // +- +- return s << 31; +- } +- else +- { +- // +- // Denormalized number -- renormalize it +- // +- +- while (!(m & 0x00000400)) +- { +- m <<= 1; +- e -= 1; +- } +- +- e += 1; +- m &= ~0x00000400; +- } +- } +- else if (e == 31) +- { +- if (m == 0) +- { +- // +- // Positive or negative infinity +- // +- +- return (s << 31) | 0x7f800000; +- } +- else +- { +- // +- // Nan -- preserve sign and significand bits +- // +- +- return (s << 31) | 0x7f800000 | (m << 13); +- } +- } +- +- // +- // Normalized number +- // +- +- e = e + (127 - 15); +- m = m << 13; +- +- // +- // Assemble s, e and m. +- // +- +- return (s << 31) | (e << 23) | m; +-} ++ILuint ILAPIENTRY ilHalfToFloat (ILushort y); + #endif //NOINLINE + + #ifdef _cplusplus diff --git a/recipes-graphics/devil/devil_1.7.8.bb b/recipes-graphics/devil/devil_1.7.8.bb new file mode 100644 index 0000000..eccadb2 --- /dev/null +++ b/recipes-graphics/devil/devil_1.7.8.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "A full featured cross-platform image library" +SECTION = "libs" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780" +PR = "r0" + +DEPENDS = "libpng jpeg" +RDEPENDS_${PN} += "libpng " + +SRC_URI = "http://sourceforge.net/projects/openil/files/DevIL/1.7.8/DevIL-${PV}.zip \ + file://il_manip_c.patch \ + file://il_manip_h.patch \ + file://M4Patch.patch \ + file://Fix-GCC-5.2-erros.patch" +SRC_URI[md5sum] = "312853ef9c85ad7b2100f9cd068b2a5b" +SRC_URI[sha256sum] = "4368d83b3016b5eafe8984f0d7f86ccee76b8993cf900d3a8cbd4901b52f64eb" + +PACKAGE_ARCH = "${MACHINE_ARCH}" +S = "${WORKDIR}/devil-${PV}" + +TARGET_CFLAGS += "-Dpng_set_gray_1_2_4_to_8=png_set_expand_gray_1_2_4_to_8" + +inherit autotools + +do_compile() { + oe_runmake +} + +do_install() { + oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} INCLUDEDIR=${includedir} +} diff --git a/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk/0001-update-gstreamer1.0-include-directory.patch b/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk/0001-update-gstreamer1.0-include-directory.patch new file mode 100644 index 0000000..d5edaa6 --- /dev/null +++ b/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk/0001-update-gstreamer1.0-include-directory.patch @@ -0,0 +1,22 @@ +diff -ruN a/DemoApps/GLES2/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto b/DemoApps/GLES2/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto +--- a/DemoApps/GLES2/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto 2015-10-24 02:49:55.000000000 +0800 ++++ b/DemoApps/GLES2/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto 2015-11-09 13:26:27.369099790 +0800 +@@ -31,6 +31,7 @@ + $(FSL_GRAPHICS_SDK)/DemoFramework/FslGraphicsGLES2/include \ + $(PKG_CONFIG_SYSROOT_DIR)/usr/include/glib-2.0 \ + $(PKG_CONFIG_SYSROOT_DIR)/usr/include/gstreamer-1.0 \ ++ $(PKG_CONFIG_SYSROOT_DIR)/usr/lib/gstreamer-1.0/include \ + $(PKG_CONFIG_SYSROOT_DIR)/usr/lib/glib-2.0/include + + CPP_DEFINE_FLAG_NAMES=\ +diff -ruN a/DemoApps/GLES3/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto b/DemoApps/GLES3/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto +--- a/DemoApps/GLES3/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto 2015-10-24 02:49:55.000000000 +0800 ++++ b/DemoApps/GLES3/DirectMultiSamplingVideoYUV/GNUmakefile_Yocto 2015-11-09 13:26:27.393099789 +0800 +@@ -31,6 +31,7 @@ + $(FSL_GRAPHICS_SDK)/DemoFramework/FslGraphicsGLES3/include \ + $(PKG_CONFIG_SYSROOT_DIR)/usr/include/glib-2.0 \ + $(PKG_CONFIG_SYSROOT_DIR)/usr/include/gstreamer-1.0 \ ++ $(PKG_CONFIG_SYSROOT_DIR)/usr/lib/gstreamer-1.0/include \ + $(PKG_CONFIG_SYSROOT_DIR)/usr/lib/glib-2.0/include + + CPP_DEFINE_FLAG_NAMES=\ diff --git a/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.1.bb b/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb similarity index 66% rename from recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.1.bb rename to recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb index 01d2103..459ad34 100644 --- a/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.1.bb +++ b/recipes-graphics/fsl-gpu-sdk/fsl-gpu-sdk_2.2.1.bb @@ -1,8 +1,8 @@ SUMMARY = "Freescale GPU SDK Samples" DESCRIPTION = "Set of sample applications for Freescale GPU" LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://COPYING;md5=01ba08a2b77c3a0a9d0ab5d4d83fed64" -DEPENDS = "${X11_DEPENDS} ${WL_DEPENDS}" +LIC_FILES_CHKSUM = "file://COPYING;md5=3880bb9c943b135a30fad5e8aabd3ee9" +DEPENDS = "${X11_DEPENDS} ${WL_DEPENDS} devil gstreamer1.0 gstreamer1.0-plugins-base" DEPENDS_append_mx6q = " virtual/libgles2" DEPENDS_append_mx6dl = " virtual/libgles2" DEPENDS_append_mx6sx = " virtual/libgles2" @@ -17,13 +17,18 @@ RPROVIDES_${PN} = "vivante-gpu-sdk" RREPLACES_${PN} = "vivante-gpu-sdk" RCONFLICTS_${PN} = "vivante-gpu-sdk" -SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" +SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \ + file://0001-update-gstreamer1.0-include-directory.patch" -SRC_URI[md5sum] = "8f656b8a3a7b7390f434ec1cebf66334" -SRC_URI[sha256sum] = "eccfd6f412c256e92e61d811cbe607e77bdfd13e268f4840b819e32dcd92921e" +SRC_URI[md5sum] = "92575bc028cea9ac7a3c2a05f7848926" +SRC_URI[sha256sum] = "c57103cbfaf74abec795130c7ea6ce9801f8cfd5c08832498d0a1ec21f178ebc" BACKEND = "${@base_contains('DISTRO_FEATURES', 'x11', 'X11', \ base_contains('DISTRO_FEATURES', 'wayland', 'Wayland', 'FB', d), d)}" + +HAS_VPU = "1" +HAS_VPU_mx6sx = "0" + do_compile () { export FSL_GRAPHICS_SDK=${S} export FSL_PLATFORM_NAME=Yocto @@ -37,12 +42,16 @@ do_install () { install -d "${D}/opt/${PN}" ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install cp -r bin/* "${D}/opt/${PN}" + if [ "${HAS_VPU}" = "0" ]; then + rm -rf ${D}/opt/${PN}/GLES2/DirectMultiSamplingVideoYUV + rm -rf ${D}/opt/${PN}/GLES3/DirectMultiSamplingVideoYUV + fi rm -rf ${D}/opt/${PN}/GLES2/S05_PrecompiledShader rm -rf ${D}/opt/${PN}/GLES3/S05_PrecompiledShader } FILES_${PN} += "/opt/${PN}" FILES_${PN}-dbg += "/opt/${PN}/*/*/.debug /usr/src/debug" -INSANE_SKIP_${PN} += "rpaths" +INSANE_SKIP_${PN} += "already-stripped rpaths" COMPATIBLE_MACHINE = "(mx6)" -- 1.9.1