summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2015-05-19Added in wait for attach context flag.Stephen McGroarty
Added in a small flag which is passed to the context from the Java/C++ API which causes the context to delay execution until a debugger is a attached. This gives time to the developer to attach a debugger to the process before the kernel is executed. Change-Id: I5bb8e75100436920f9e1a0f414f3b0bcf0d2b439 Signed-off-by: Stephen McGroarty <stephen@codeplay.com> (cherry picked from commit d5164d537c84867880694327727b5f22b0a3ccbd)
2015-05-19Adapt update_rs_prebuilts.sh to new SDK layoutPirama Arumuga Nainar
The structure of SDK prebuilts has changed. The files go into lib, lib64 or bin subdirectories in prebuilts/sdk/tools/<OS>. Adapt update_rs_prebuilts.sh to this layout. Currently, lib/ has just the 32-bit version of libc++.so Change-Id: I11fc114ee0c888f2c54cb92db9e5084ca921fba5 (cherry picked from commit 9b0ec105175dc668cf4f373bdccc74f465fcb831)
2015-05-19Merge "Fix cache path initialization and set." into mnc-devJason Sams
2015-05-18Fix cache path initialization and set.Jason Sams
Add null terminator to strings Return nullptr if string is not set bug 20894664 Change-Id: I33f5d84d56f6299558f5d8713694e40afc82dd20
2015-05-18Fix problems with allocation destructionJason Sams
Cancel rather than try to queue the buffer queue to avoid deadlocks on exit. bug 20894664 Change-Id: Ie6375e67af66069472361ea4da9c111e19090684
2015-05-18Notify drivers when user get a pointer to allocationJason Sams
Requested by vendor for driver bring-up. bug 20894664 Change-Id: I7a1540236e557ef42ffde1c832b5d5ef36b91c96
2015-05-15Don't use TEMP_FAILURE_RETRY on close in frameworks/rs.Elliott Hughes
Bug: http://b/20501816 Change-Id: I63a7c690bc5bde3dc1354f6e04ad8d32b3b43015 (cherry picked from commit 2df576745c52a04a42d615f83b03f19d803b7757)
2015-05-14Merge "Generate global info for fused kernel" into mnc-devYang Ni
2015-05-13Merge "Let vendor drivers access global-variable flags" into mnc-devPirama Arumuga Nainar
2015-05-13Merge "Add USAGE_OEM" into mnc-devJason Sams
2015-05-13Generate global info for fused kernelYang Ni
b/21114118 Change-Id: I6332572f2f2e6f7857a50bf503e73984371cfe0b
2015-05-13Add USAGE_OEMJason Sams
Allow OEMs to pass data from other HW blocks via internal extension. bug 20894664 Change-Id: I78c19f5eec462aff7d8a5408f2f16cfc9b78c036