summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-20Restore missing min and max API.android-6.0.1_r9android-6.0.1_r81android-6.0.1_r80android-6.0.1_r8android-6.0.1_r79android-6.0.1_r78android-6.0.1_r77android-6.0.1_r74android-6.0.1_r73android-6.0.1_r72android-6.0.1_r70android-6.0.1_r7android-6.0.1_r69android-6.0.1_r66android-6.0.1_r65android-6.0.1_r61android-6.0.1_r60android-6.0.1_r59android-6.0.1_r58android-6.0.1_r57android-6.0.1_r56android-6.0.1_r52android-6.0.1_r51android-6.0.1_r50android-6.0.1_r49android-6.0.1_r48android-6.0.1_r47android-6.0.1_r46android-6.0.1_r43android-6.0.1_r42android-6.0.1_r41android-6.0.1_r40android-6.0.1_r30android-6.0.1_r3android-6.0.1_r28android-6.0.1_r27android-6.0.1_r26android-6.0.1_r20android-6.0.1_r17android-6.0.1_r13android-6.0.1_r12android-6.0.1_r11android-6.0.1_r10android-6.0.1_r1android-6.0.0_r41marshmallow-mr3-releasemarshmallow-mr2-releasemarshmallow-mr1-releasemarshmallow-mr1-devmarshmallow-dr-devmarshmallow-devJean-Luc Brouillet
min(float2/3/4, float) and max(float2/3/4, float) were defined in our headers in K. In L, they were removed by mistake. This continued to work however because a float would be auto converted by the compiler to a float4. In M, we started validating for unexpected external references, which _Z3minDv4_ff is. This can prevent programs compiled with K from running on M. This CL restores the declarations. Corresponding CLs will fix the whitelist and add CTS tests. Bug:23389429 Change-Id: I3f91830a14b7e01cf1b6ea954fa6dd2fc9d71286 (cherry picked from commit 7cf263d593c057af8da8d57025e7315c4ed21ea2)
2015-08-11Fix build break due to ctxt->context rename.Stephen Hines
Bug: 21647353 Change-Id: I8ae79f32878f2a9c522f19b7f5d9ed47d58165ab
2015-08-10Rename ctxt to context.Jean-Luc Brouillet
Rename ctxt to context to be consistent with documentation and our coding standards that asks us to eschew abbreviations. b/21647353 Change-Id: Ic8c1c2720276aae60c5d2e3782f4336488ecb61e
2015-08-04Provide better diagnostics on CTS failures.Jean-Luc Brouillet
Intializes the arrays to a non-zero value to help diagnose what is causing the 0 return bug, i.e. is a zero found in b/22556317 because the buffer is not copied or because it is copied and all null? Also reports all the failures instead of stopping after the first one. See b/22556317 Change-Id: I5ad769616f120a847eebe1386c726daacb831fc7
2015-07-27Disable jack usage for when building RS prebuiltsMiao Wang
Bug: 22693954 Change-Id: Ibfc46acf2a23e711b9f4c8236bff4d7c9f8acb43
2015-07-27Making libRSSupport able to optionally bundle libblas(V8) through dlopenMiao Wang
and dlsym. bug: 22700067 bug: 22693954 Change-Id: I3ade3ad2802f3b8e5fc5661319b98a6212e6d8a2 (cherry picked from commit e941f18202b9c9883ff81c63710f7faec5c988e4)
2015-07-27Prepare for arm64 prebuilts of RS support library.Stephen Hines
Bug: 22693954 This change fixes update_rs_prebuilts.sh to build for arm64 as well. It also makes some changes to RSTest_CompatLib for working on arm64 (i.e. removed APIs, etc.). The old version of RSTest_CompatLib is retained as RSTest_CompatLibLegacy, but it is disabled from building due to errors with mma and FORCE_BUILD_RS_COMPAT. We also now need to ensure we properly build all the required libraries (both .so and .a files). Change-Id: If89b8a542eb0d61db0ba186d4e3221bcc6e5664b
2015-07-23Ensure that SSE-specific functions get built separately for debug runtime.Stephen Hines
Bug: 22530323 The build rules for the debug context don't allow the SSE optimized versions of some functions to be used. Since we bundle all of these functions into a single file, this results in the debug runtime missing some symbols (clamp, length, dot, sqrt). This change ensures that the debug runtime for x86 gets the generic definitions of these functions instead of dropping them completely. Change-Id: Idedfbb5c1badf0b88530a7e926dda6141443ea1f (cherry picked from commit a673fb0db28eac2300fcfa04549138c1c9202014)
2015-07-17Fix GetCpuInfo() routine to correctly check the cpuinfo file to makeMiao Wang
sure we don't miss SIMD path if there is one. bug: 22560549 Change-Id: I8c8841ba9924ee28ae56be8b3c66c50b5badf796 (cherry picked from commit 5d70cb591d78d62d10839a52302ec9087c6f3350)
2015-07-14Merge "CPU ref: Fix potential buffer over-read / uninitialized memory ↵Stephen Hines
access." into mnc-dev
2015-07-13CPU ref: Fix potential buffer over-read / uninitialized memory access.Matt Wala
GetCpuInfo() was reading /proc/cpuinfo into a string without properly null terminating the result. The resulting unterminated string was being passed to strstr(). Change the code to read the file with fgets(), which ensures the result is null terminated. Also, document the GetCpuInfo() function and the global variable that it sets. Change-Id: I041331fdc25d79217ff7c1bf36a4aff2be8e0192 (cherry picked from commit 11fd9ec1ab8dfa7ae45c6edeea48dddc4633efea)
2015-07-13Fix BLEND_DST_ATOP and disable vectorized optimizations temporarily.Stephen Hines
Bug: 22047392 This function needed to assign the 'w' component (alpha channel) of the source input to the output. This patch does that for the C++ code, but needs to be updated for the inline assembly that we have for NEON/ASIMD/SSE. For the time being, we can just disable those paths. Change-Id: Iaac02ae2d2cb670d299446d5a017d518c0e303da (cherry picked from commit 820e22b13fb48bc4719fa606ee4bc47e184970e0)
2015-07-01Merge "Make support lib CPU driver able to access IntrinsicBLAS" into mnc-devMiao Wang
2015-07-01Merge "update the offset type for BLAS.BNNM" into mnc-devMiao Wang
2015-06-30update the offset type for BLAS.BNNMMiao Wang
bug: 22184114 Change-Id: I6ec212f8d5feb46fc9d0f97862b206978af1675b
2015-06-30Merge "fix the bug that mWriteStream is deleted twice." into mnc-devMiao Wang
2015-06-30fix the bug that mWriteStream is deleted twice.Miao Wang
bug: 22199404 Change-Id: Idd4c3594ef5208f78b946378194d2e31c6af1e0e
2015-06-29Make support lib CPU driver able to access IntrinsicBLASMiao Wang
bug: 21902810 Change-Id: Icf4e90721a3c33271a03d61dcd86e0ab3ec8ffde
2015-06-29Avoid overwriting shared library file that is openYang Ni
b/21949580 Writing different contents to an existing .so file, which is currently open, may corrupt its globals and code. Choose a different file name instead. Change-Id: I3e649b09a55b43339283aa1c46f2844c66434c17
2015-06-23Skip the checksum if we have precompiled code on the /system/ partition.Stephen Hines
Bug: 20894664 The system partition is read-only, and can/should be compiled correctly during the offline creation of the system image. Since we cannot replace these precompiled blobs (short of app update/OTA), there is no reason or correct way to validate/replace the checksum. Change-Id: Ia66bfdbe178bf215e146c3699f5bc7804222e978 (cherry picked from commit 6a236ad3a3760e8124b68a1b6220ed6e4fbfb152)
2015-06-23Allow drivers to alter the default driver name on rsdHalInitJon Parr
Bug: 20894432 Permit partner drivers via Context::setDriverName to choose their own mDriverName rather than the default OVERRIDE_RS_DRIVER string. This can only be done once from within rsdHalInit otherwise it will be ignored and the default behaviour will apply. Change-Id: I49b81e60f7983a81f0e71fbef4b46f9bfc834849 (cherry picked from commit b268abd5528936d13a85b03f44458fe3a55cafad)
2015-06-22Check for kernel chaining in ScriptGroupYang Ni
b/21958851 bcc expects kernels chained up via input and output. Check this in the runtime before passing ScriptGroup to bcc for compiler fusion. Change-Id: I6004d577410ea1684f5043babadc1e1b885c4f6a
2015-06-19Merge "Avoid clobbering of YUV layout for flexible formats" into mnc-devPirama Arumuga Nainar
2015-06-19Generate the white list used to validate unresolved externals.Jean-Luc Brouillet
Generate the file used in libbcc to verify that all the unresolved references found in a loaded script correspond to RenderScript APIs. We do this to prevent script from accessing functions they should not use, e.g. malloc(). We also generate slang test files for each API level. These tests can be used to cross-validate the generator to make sure that all APIs can be called. These files can also be used to manually check the white list by looking at the unresolved external references when these files are compiled. b/19425238 Change-Id: Idd4bd48e61e81a71d61445e60950bc79de88daf2 (cherry picked from commit 36090673baf50cf3c70bdc89f9a4a872c05cf0f6)
2015-06-18Avoid clobbering of YUV layout for flexible formatsPirama Arumuga Nainar
Bug: 21787806 In function DeriveYUVLayout in fw/rs/driver/rsdAllocation.cpp, skip initialization of DrvState if the yuv format is the flexible YCbCr format. Change-Id: Ie2c5253b2ed048887d034ad8793d0558f2cd7d4f
2015-06-14Merge "Fix offset problem when jumping to an anchor mid-pages." into mnc-devJean-Luc Brouillet
2015-06-14Fix offset problem when jumping to an anchor mid-pages.Jean-Luc Brouillet
BTW, I had tried to use <a id=''> instead of <a name=''> to be HTML5 compatible. This does not work with the current default.css file. Change-Id: I07b4273a0f9dabead668baf6b25dfac41021ab98 (cherry picked from commit 918944e41306198807728ae3f05a1799773895c5)
2015-06-14Generate __attribute__(deprecated) for deprecated APIs.Jean-Luc Brouillet
We allow also a custom deprecation message. b/19912630 Change-Id: I297bed611c7fbbb34d41e7edd796557c9afe50da (cherry picked from commit 36e2be56cd398bf4a318114bbc9fa3f4573c158f)
2015-06-14Merge "Obsolete the graphics API in the .rsh files." into mnc-devJean-Luc Brouillet
2015-06-14Obsolete the graphics API in the .rsh files.Jean-Luc Brouillet
Mark the graphics APIs as no longer available starting with version 23. Modify the generator to change the #ifdef guards around the API to enable internal code to still access the obsoleted APIs, as we still neeed to support them at runtime. Also, include a documentation change in the rs_convert header file that had not been included previously. b/19001259 Change-Id: Iaad4833f504da9aa9f5069a977c37b86d1316d3a (cherry picked from commit 67923a9e829d89522bb5338a6d635d807a7ee59b)
2015-06-14Merge "Fix small doc alignment issue." into mnc-devJean-Luc Brouillet
2015-06-13Fix small doc alignment issue.Jean-Luc Brouillet
Change-Id: I29e7bd894a79e89eba4f8f663daecaccb1467b6c (cherry picked from commit 45c5f4be5d0215a30be1051420e083a49912c5ac)
2015-06-13Clarify rsPackColorTo8888 restrictionsJean-Luc Brouillet
b/13186099 Change-Id: Ia5f34d50c0ba6db1f07bee62b50a6a00421a9f74 (cherry picked from commit f1001ad7dea3814e499cf28e6d0d95852244edc6)
2015-06-12fix update_rs_prebuilts.sh after build system change.Miao Wang
b/21813354 Change-Id: I948396ffd44896a1d84f5ee16b4222f4a0d6f67d
2015-06-11fix the the BlasBenchmark so it only has one MAIN activity.Miao Wang
b/21028875 Change-Id: I600955599ac2fd0da13141ee6785578e51e5f372
2015-06-10Simple BLAS BenchMarkMiao Wang
- Currently has 8bit GEMM and SGEMM tests - Both tests are using 3 different data size: Small, Medium and Large - For Large tests, the input data is actually data used by Neural Network. b/21028875 Change-Id: I504883240a442074d2e9b62c42b9c376362eff5e
2015-06-03Add half (fp16) to runtime API.Jean-Luc Brouillet
Bug: 7342860 Change-Id: I25c6e1a9102cb193ed47f7d0c87f5948f59b8036 (cherry picked from commit 6119da9273f88e838b2e8648bde0d40fabe51f5f)
2015-06-03Support for half in driver/runtimePirama Arumuga Nainar
Bug: 7342860 Add conversion functions, clamp to the C files. Add rsGetElementAt, rsSetElementAt to ll*/allocation.ll Change-Id: I71c93029699f9bbc79a5b04b51074e303981ae4b (cherry picked from commit 2dcbc3d33443c1224085cab081b634f99327c159)
2015-05-29Revert "make the cpu driver able to create IntrinsicBlas for compat lib."Miao Wang
This reverts commit bfda83d01280847341b05c0ce4908e08b1214cb7. Change-Id: If323b1f99bc087af08451df778cb4ea1a33c1d2b
2015-05-29make the cpu driver able to create IntrinsicBlas for compat lib.Miao Wang
bug: 21028875 Change-Id: Ifb32d53271eb8cf5fe14b50733281224984bde6f
2015-05-29Merge "update dispatch table for IntrinsicBLAS" into mnc-devMiao Wang
2015-05-29Avoid casting for CpuScript objectYang Ni
b/20894664 Vendor driver may have different layout for the Script object. Avoid casting mHal.drv but use lookupScript virtual calls instead. Change-Id: Ie492dd98a435b35843ca222a8430c51ccfc8aea9 (cherry picked from commit 999e6b9ec115be28e1e175f6e1aabfe18969aca8)
2015-05-28API Runtime Reference documentation tweaks.Jean-Luc Brouillet
Many small changes. Among them: - Cleaned up the boiler plate HTML used for -H option to the minimal possible. - Cleaned line break of the comments to make them more consistent in the .rsh files. - Added missing summaries. - Make the style of argument comments more consistent. - Fixed missing HTML escaping. - Fixed generation of the snippets for the .cs file. - Improved the documentation about the math precision. - Reworked the documentation of object types. Change-Id: I8b229720134aac6d46a0a2679e8b58f15be5ed7e (cherry picked from commit 6386ceb3bf25e442513224aaa45691dfe49562d9)
2015-05-28update dispatch table for IntrinsicBLASMiao Wang
bug: 21028875 Change-Id: I6d4aa8973de523aef7ced48105737eb5ee471e5d
2015-05-22Update RS driver to support extraction of global variable properties.Stephen Hines
Bug: 20306487 This patch adds some new enums to classify properties (such as "static", "constant", and "pointer") for global variables. The reference driver is also extended to provide methods to examine these properties (when the bitcode is compiled with bcc). Change-Id: I331756f8a8990caf5ebdf85599060434a7cfdcb7 (cherry picked from commit 5aa018cc36e589b07674957714d27ae3d1fa1c4e)
2015-05-22Use "override" instead of "virtual" when replacing methods.Stephen Hines
Bug: 20306487 Change-Id: Ic83cb04cac153a7556f5d516e8f5ec88b5527b6f (cherry picked from commit c060f1435e7b9405f3be8974417fa6f410f03753)
2015-05-21Merge "Re enable Jack for RSTest_Compat" into mnc-devYohann Roussel
2015-05-20Fix warnings in RenderScript sources.Jean-Luc Brouillet
An upcoming CL fixes a bug where many warning were disabled. This fixes the warnings (that are turned into errors in most of our builds) before the CL lands. Also, adds long & unsigned long testing for a few tests. Change-Id: Id6826e968db2d06ef9910fe775309d1c3872cdc5
2015-05-20Merge "Notify drivers when user get a pointer to allocation" into mnc-devJason Sams
2015-05-20Re enable Jack for RSTest_CompatYohann Roussel
A previous version of the library was triggering a Jack bug. It looks like the code was modified and no longer face the bug. Bug: 10815986 Change-Id: Ibeb6bc25582a957d9bf07d4761953f5f58d621b8