summaryrefslogtreecommitdiff
path: root/rsScriptC_Lib.cpp
AgeCommit message (Collapse)Author
2015-04-29Handle older structure sizes by zeroing new fieldsPirama Arumuga Nainar
Bug 19734267 Bug 19866850 Prior fix handled only rsForEach calls from a script. It is not sufficient, as launch options in support library also will also use old structures. Apps compiled for support library still run in native mode when available, thus necessitating this fix. This fix copies and extends the input in ScriptC::runForEach instead of rsrForEach. Change-Id: I3bb2527eadcbcdb85a76a1f5568269bbfdee972b (cherry-pick of 9479e5bf0152ecff022cd374e2e80905f88b1a5d from AOSP)
2015-04-15Merge "Fix issue with older structure sizes"Stephen Hines
2015-04-14Fix issue with older structure sizesStephen Hines
When structures are enlarged in RS we need to use the script API number to properly handle the older cases. Bug: 19734267 Change-Id: I0ffd3dc4cea1640f2b14c588df3a93eee749e74e
2015-04-14Fix refcounting bugJason Sams
Change-Id: I0ea7f5077e1b7d15588ac023ae5ce19abe016c48
2014-12-08Fix broken rsrLocalTime implementation.Tim Murray
Change-Id: Ia81e0ee51ebcb248e413d99de37d4092ffa9bcfb
2014-08-20Replace NULL macros with nullptr literals.Chris Wailes
Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
2014-08-15Collapse code paths for single- and multi-input kernels.Chris Wailes
This patch simplifies the RenderScript driver and CPU reference implementation by removing the distinction between sing- and multi-input kernels in many places. The distinction is maintained in some places due to the need to maintain backwards compatibility. This permits the deletion of some functions and struct members that are no longer needed. Several related functions were also cleaned up. Change-Id: Id70a223ea5e3aa2b0b935b2b7f9af933339ae8a4
2014-08-13Revert "Collapse code paths for single- and multi-input kernels."Stephen Hines
This reverts commit 818cfa034e257c7bb48356257f5cb67334e19aa6. Change-Id: I59f39f52e6c8f60bb01cbcb8ccf2215eaf46a57f
2014-08-12Collapse code paths for single- and multi-input kernels.Chris Wailes
This patch simplifies the RenderScript driver and CPU reference implementation by removing the distinction between sing- and multi-input kernels in many places. The distinction is maintained in some places due to the need to maintain backwards compatibility. This permits the deletion of some functions and struct members that are no longer needed. Several related functions were also cleaned up. Change-Id: I77e4b155cc7ca1581b05bf901c70ae53a9ff0b12
2014-08-12Bugfixes for AArch64.Tim Murray
- Disable use of runtime pointer until we can set it correctly in invokes. - Disable YUV and ColorMatrix ASIMD intrinsics - Modify runtime stubs to use large objects correctly - Fix calling convention in allocation.ll - Add appropriate rsr functions for compat lib and large objects bug 16846318 Change-Id: I7f6a4ff66fd1b3ad40b08cfc9ecdda7d53e95c7d
2014-08-12Fix isObject when in 64bit mode.Jason Sams
This also cleans up the passing of args to SetObject and ClearObject. Fix related issues in 64bit teardown. Change-Id: I90d1b93c45ff5bc84957d5441ab48a4e2f6feb20
2014-07-08Add 64bit large object supportJason Sams
Add HAL hooks for filling in LO fields. Change-Id: Ib9bdee714a062de519d2a9708c1016404a1b11a4 Conflicts: driver/rsdBcc.cpp driver/rsdCore.cpp rsAllocation.h rs_hal.h
2013-12-03Retain older message APIs since existing GPU drivers depend on them.Stephen Hines
Change-Id: Ic5425fafb7971b6094108d79346d067785b91735
2013-12-03Add missing rsForEach()/rsSendToClient*() functions and API tests.Stephen Hines
These were missing from the support library. Change-Id: I53dd062fc0f1d9a6f0ce06d148c4047ebb338b71
2013-08-07Refactor hal to remove cpuConsumer from driversJason Sams
This CL should minimize build breaks due to BufferQueue changes in the future. Change-Id: I565a6eae5cc25603741fef32f2cfcb31a32eb757
2013-07-10Remove libutils and fix rsDebug for RS support library.android-4.3_r2.3android-4.3_r2.2android-4.3_r2.1jb-mr2.0-releasejb-mr2-devStephen Hines
Bug: 9664050 Our bitcode runtime library translates vector rsDebug() calls into passing their parameters via pointers. The previous version of libRSSupport.so was being created with non-pointer versions of these routines accidentally. This change also fixes a missing permission issue for ImageProcessing2, so that the compatibility library can be verified. This change also removes the use of libutils by switching the implementation of String8/Vector in the compatibility library to internal types backed by libstlport_static. Change-Id: I20da75e8c19a82a42dc2bceaba1937d21372db84
2013-03-19Add x86 server support.Tim Murray
Change-Id: I674acaf15b67afa48bc736f72942a11e2e38e940
2013-03-15Reduce diffs with compat lib.Jason Sams
Change-Id: Ibfa2c7c7da56d158f424ac343e364feacd0a21da
2012-11-19Separate CPU driver impl from reference driver.Jason Sams
Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
2012-07-25Move memory layout to driver.Jason Sams
This change moves all allocation data copies to the hal. Also removes stride from the runtime. Follow on changes will remove the malloc pointer from the runtime. Change-Id: I30967c739800cd4b97186e9fc8b69f26a3f2787d
2012-03-09More header untangling.Alex Sakhartchouk
Change-Id: I090943775cbda8d9515cdb484957f6b05d5b1799
2012-02-22Support running ForEach on non-root functions.Stephen Hines
BUG=6000538 Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
2012-01-08Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
2011-06-14Allocation copy functions.Alex Sakhartchouk
Change-Id: Idce6d44a4f4bb2e399284a40c0f90dc1bff912fd
2011-04-20Create runtime stubs for compute driver.Jason Sams
Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
2011-03-17Migrate thread launch to driver.Jason Sams
Change-Id: If182c524cceb327547640f22f956856d291d1787
2011-03-17Start seperating out RS compute implementation. Create halJason Sams
layer to seperate from runtime. Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
2011-03-14Make RS Matrix functions threadable.Stephen Hines
BUG=4100079 Change-Id: I6cefa0eab42481fa974077d6aed98007f9fd87f7
2011-03-03DO NOT MERGE: Almost all warnings are now errors in RS build.Stephen Hines
Change-Id: Ie4952cdf5c75bf1b7a7899a32b3b1f8747686356
2011-02-04Add support for memcpy/memset to RS.Stephen Hines
Bug: 3426446 Change-Id: I78170a50bdd891d928b3db96685b4c3c801b6f00
2011-01-25Migrating functions for on device linking.Jason Sams
Change-Id: I41dc1551ada53370f2b06c49cc76089b1e72ac5b
2011-01-24Add missing functions to math library.Stephen Hines
This also updates the math test suite to exercise all the basic operator functions (except __udivsi3 which may not be 100% necessary). There is also a small fix for rsQuaternionMultiply(). Change-Id: Id157e6d5ebe2e20c17e8ea7b13ffaa74c241838c b: 3203577
2011-01-18Correctly log debugging info as debug.Jason Sams
Change-Id: I1169e015288d7d91b7ecbdd991e815152740e68d
2011-01-09Split time functions into rs_time.rsh header.Stephen Hines
Change-Id: I598b0031d15749c91d11fbd37b075d0564a94dbf
2010-12-08Allocation API update.Jason Sams
Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
2010-11-15Add support for integer mod.Bryan Mawhinney
Change-Id: I681b8220c8b39d865ade036a93ba93a965e259c9
2010-11-10Code cleanup to make formatting consistentAlex Sakhartchouk
across all the renderscript files. Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
2010-11-08Handle user message ID 0Jason Sams
Pass RS runtime errors back to java. throw exceptions for runtime errors. Change-Id: Ifcf16cbbf9b98137971dced5076f8a5563eb016c
2010-11-01Add code to mark functions rather than whole files as threadable.Jason Sams
Change-Id: Ie635fbbb96b8ade48501ec564fe135edc256537d
2010-10-15Add support for rsDebug with 64-bit types.Stephen Hines
Bug: 3099081 Change-Id: Ieb3af7757489876ef951be8527aa73f69e1481fd
2010-09-30Add object validity checking.Jason Sams
Change-Id: I2613e87b09a6e560f0381d4ed620d60a10bc30e4
2010-09-17Fix function name match for refcounting funcs.Jason Sams
Change-Id: I3fa8211200023e0df494cd9aab698e215b3c2164
2010-09-02Adding ability to dirty the allocation and notify shaders using it.Alex Sakhartchouk
Change-Id: Id5ac8dbba5185cb1f43bedcf4098fcef9f477c51
2010-09-01Remove ACC and other legacy bits from RS.Jason Sams
Change-Id: I12a3b0477f3201ec7ca63564ae2b387ecc89dedf
2010-08-16Support reference operations in RS scripts.Jason Sams
Change-Id: I9cb5f3cb71823ab24ca51bf0167a0f52cf0691f9
2010-08-06Fix debugging support for float vectors and add matrix debugging.Jason Sams
Change-Id: Ie1ee3764a32889f3c39b923186f14af74ecb772f
2010-07-29Cleanup of signed/unsignedJason Sams
Make all functions overloadable. Change-Id: I443c83afcf9a7acfae394585201f081681f309db Update examples. Change-Id: I100d6fa8dd1af376bcee0b2c42c5aabe9c03bb6e force rebuild of all .rs files to pick up core header changes. Change-Id: I6231a8a024388481ca231507e83b108ebdbc3500
2010-07-28Cleanup sendToClient and add rsGetDt().Jason Sams
Remove legacy implemtation of matrix calls which were moved to llvm bc. Change-Id: I527740590067db3bcb2147233ef41fb057f1d2a8
2010-07-19Threading RS ForEach.Jason Sams
Change-Id: I5d6fe4db2b6ac0613394bc5a066ff90ec146d60e
2010-07-151st cut of ForEach and test.Jason Sams
Change-Id: I6534569c8d26db8b9691666134a555c8bf94184e