summaryrefslogtreecommitdiff
path: root/rsScriptC.h
Commit message (Collapse)AuthorAgeFilesLines
* Delete simple reduction implementation.David Gross2016-06-101-5/+2
| | | | | Bug: 27298560 Change-Id: I8c3d568e98aaf0b7d86881c985d13ed5b8e95338
* Support for general reduction kernels.David Gross2016-01-191-12/+16
| | | | | | | | | | | | | | Requires coordinated change in frameworks/base. Requires coordinated change in frameworks/compile/libbcc in order for RsTest to run. At present, general reduction kernels are run single-threaded. Also: Remove dead struct field MTLaunchStructForEach::sig. Bug: 23535724 Change-Id: Ice17ccf20a902f8a106eaa62ec071d46e3c0ad8c
* Switch to a local BitcodeTranslator.Stephen Hines2015-12-031-8/+0
| | | | | | | | The original implementation was using pointers for bitcode lifetime issues, but we can now use a regular local (non-pointer) variable instead. Change-Id: I5b36f813476a5d433d9926dfb91570b8ede15644
* Add a basic implementation of the reduce kernel API to the CPUMatt Wala2015-08-141-0/+3
| | | | | | | | | | reference implementation. Bug: 22631253 For now, this just runs a serial reduction on one thread. Change-Id: I34c96d24bb6f44274de72bb53160abcf79d143b0
* Add a dumpBitcode() method to facilitate debugging.Stephen Hines2014-12-231-4/+4
| | | | Change-Id: I300bc9cf9f06c315c053cb302fdf33a9ca899972
* Replace NULL macros with nullptr literals.Chris Wailes2014-08-201-2/+2
| | | | Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
* Collapse code paths for single- and multi-input kernels.Chris Wailes2014-08-151-8/+0
| | | | | | | | | | | 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
* Revert "Collapse code paths for single- and multi-input kernels."Stephen Hines2014-08-131-0/+8
| | | | | | This reverts commit 818cfa034e257c7bb48356257f5cb67334e19aa6. Change-Id: I59f39f52e6c8f60bb01cbcb8ccf2215eaf46a57f
* Collapse code paths for single- and multi-input kernels.Chris Wailes2014-08-121-8/+0
| | | | | | | | | | | 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
* Adds support for multi-input kernels to Frameworks/RS.Chris Wailes2014-07-081-0/+9
| | | | | | | | | | | | | This patch modifies Frameworks/RS in the following ways: * Adjusted the data-layout of the C/C++ version of RsForEachStubParamStruct to accommodate a pointer to an array of input allocations and a pointer to an array of stride sizes for each of these allocatoins. * Adds a new code path for Java code to pass multiple allocations to a RS kernel. * Packs base pointers and step values for multi-input kernels into the new RsForEachStubParamStruct members. Change-Id: I46d2834c37075b2a2407fd8b010546818a4540d1
* Remove FAKE_ARM64_BUILD now that we have 64 build working.Jean-Luc Brouillet2014-06-101-3/+3
| | | | Change-Id: Ieb6627adcd1d097fe709559e182efcfc6841d13e
* Remove the obsolete ScriptCState. Simplify cascading #ifdefs.Jean-Luc Brouillet2014-03-251-30/+5
| | | | | | | | Change-Id: I1cb561c6325d80c764d386f7b76e6a416261cd8f modified: rsContext.h modified: rsScriptC.cpp modified: rsScriptC.h
* Make RS compile on ARM64.Tim Murray2014-03-131-0/+4
| | | | | | bug 13280327 Change-Id: I79080c448ca17d0cba8df075737c22b24ce9a085
* Cleanup diff with compat.Jason Sams2012-12-191-0/+5
| | | | Change-Id: Ieedcdec03ccb05cac68cbebbd398e07cb885f4d3
* Separate CPU driver impl from reference driver.Jason Sams2012-11-191-2/+1
| | | | Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
* Ensure that the cache directory exists before calling compiler.Tim Murray2012-10-011-0/+1
| | | | | Bug: 7077014 Change-Id: Iab94a265193d4ff749573520939c974a982ac7c1
* Move memory layout to driver.Jason Sams2012-07-251-4/+0
| | | | | | | | 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
* Plumb context through for serialization.Jason Sams2012-07-241-1/+1
| | | | Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f
* Merge "Support running ForEach on non-root functions."Stephen Hines2012-02-231-1/+2
|\
| * Support running ForEach on non-root functions.Stephen Hines2012-02-221-1/+2
| | | | | | | | | | | | BUG=6000538 Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
* | Rename three header files to free namespace for api.Jason Sams2012-02-161-1/+1
|/ | | | Change-Id: Ie9ef65a477373c30b2d5b02248f62e768b6f27ae
* Start using bcinfo components within librs.Stephen Hines2011-08-031-0/+7
| | | | | | BUG=4942491 Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
* More work to make libRS buildable on the host.Alex Sakhartchouk2011-06-031-1/+1
| | | | Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
* Create runtime stubs for compute driver.Jason Sams2011-04-201-0/+1
| | | | Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
* Migrate thread launch to driver.Jason Sams2011-03-171-1/+1
| | | | Change-Id: If182c524cceb327547640f22f956856d291d1787
* Start seperating out RS compute implementation. Create halJason Sams2011-03-171-18/+3
| | | | | | layer to seperate from runtime. Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
* Moving dependency includes out of librs headers.Alex Sakhartchouk2011-02-251-2/+2
| | | | | | When we want to use it on the host, we shouldn't need to go hunting for every external dependency Change-Id: I885262acdcdf5ede4a9392235f35d5e2f7038e8b
* Correctly free resouces bound to scripts when the scripts are deleted.Jason Sams2011-01-271-0/+4
| | | | | Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070 b: 3381615
* Cleanup script init to fix bogus log printing andJason Sams2011-01-231-5/+2
| | | | | | reduce memory churn. Change-Id: I0bf5392102e3d59fea81f5f9f832887113602b7f
* Check and propogate errors from llvm.Jason Sams2011-01-191-1/+1
| | | | Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
* bcc interface fixed.Shih-wei Liao2011-01-141-4/+2
| | | | Change-Id: I81349750e58f119a9c2ad596f376c7e39d5f0d4e
* 1. LOG 4 fatal error paths (TODO: These 4 places should signal Java exceptions.)Shih-wei Liao2011-01-071-1/+1
| | | | | | | 2. Prepare on-device linking. 3. Clean up code. Change-Id: Iac4148431dbe1c3c4044f7394eb51a1332f513f9
* Rename bcc::BCCscript -> bcc::Script. Ideally, should do:Shih-wei Liao2011-01-031-2/+2
| | | | | | include bcc.h instead of forward declaration. Change-Id: I649f62d240ed4e13eb95a8988a9ee202b19e7436
* Stale cache management to address a P1 bug # 3296131.Shih-wei Liao2010-12-201-1/+1
| | | | Change-Id: I593f35a91c4a14c055828f8989fe01b9e7790039
* 1. Add Context to a RenderScript or RenderScriptGL instance.Shih-wei Liao2010-12-141-1/+1
| | | | | | | | | This is to allow RenderScript to better interact with the Android environment. E.g., per-app cache. 2. Plumbing, testing. 3. Added getApplicationContext in RenderScript.java. Change-Id: I85edeebe38825e20b2e86f4f4815689dfc332ef9
* Fix 'BCCscript' build break.Iain Merrick2010-11-291-2/+4
| | | | | | | | | | | | frameworks/compile/libbcc/include/bcc/bcc.h was updated in change I3f3d31fc. What used to be "struct BCCscript" is now "class bcc::BCCscript" for C++ code. Looks like the framework/base header rsScriptC.h is just trying to forward-declare the same type, so we just need to make the same change there. Change-Id: I6f6f9dd7608af01d519c2e26fd9b5e6649f71902
* Add caching support of BCC binaries.Shih-wei Liao2010-11-181-4/+1
| | | | Change-Id: I1e75bb84d88319cb6f1bbe6d907cf6e8ed546142
* Code cleanup to make formatting consistentAlex Sakhartchouk2010-11-101-5/+2
| | | | | | across all the renderscript files. Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
* Add code to mark functions rather than whole files as threadable.Jason Sams2010-11-011-0/+1
| | | | Change-Id: Ie635fbbb96b8ade48501ec564fe135edc256537d
* Removing fixed size arrays.Alex Sakhartchouk2010-10-081-5/+0
| | | | Change-Id: I5c65b29a197013de2517cfb6dbe7abb9e24a688b
* Fix clear() operation for rsScriptC.Stephen Hines2010-09-291-2/+4
| | | | | | | | | | | - This removes a memory leak where some elements were not getting tracked properly (and then triggering an assert when a context is destroyed). - Convert ScriptCState to use a tracked object reference for mScript. - Add a missing clear to FontState. - Clean up synchronization in RSTest so that our graphics context outlives any subtest context. Change-Id: I0d5768c4d2f8810dd1ae2f68b1edd7e150f382fd
* 1st cut of ForEach and test.Jason Sams2010-07-151-3/+5
| | | | Change-Id: I6534569c8d26db8b9691666134a555c8bf94184e
* Creating the jni and java layer to integrate a3dAlex Sakhartchouk2010-06-041-2/+1
| | | | Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37
* Rough implemetation of ForEach.Jason Sams2010-05-281-5/+12
| | | | | | Remove launchID from root graphics script. Change-Id: I9f80c0d4df1264f2ee1624a6d7216b9dfdf8502e
* Removed unnecessary change based on comments.Alex Sakhartchouk2010-05-211-2/+4
| | | | | | | | | | | | | | | | | Now using android utils lib. collada_to_a3d seems to work with android util libs. Integrating old changelist Changing assert to rsAssrt in VertexArray making context compile. Change-Id: I33890defa777f09253bfab630d97782359ec49d7 Added serialization code to rsLib Integrated old changelist Change-Id: Ie4746113f6d1817fbb3264f97fdddde25b779311 Added serialization code to rsLib Change-Id: Ie4746113f6d1817fbb3264f97fdddde25b779311
* Begin naming cleanup for renderscript runtime.Jason Sams2010-05-191-0/+5
| | | | | | Prefix functions with "rs" or "rsg". Change-Id: I4435b486831bfab1ea473ccfad435b404e68f1c9
* Split ScriptC Lib into CL, GL, and basic.Jason Sams2010-05-181-1/+3
| | | | Change-Id: Iadab35f2a967a1afd7a2fd13216d0a7acf4b6a50
* Remove more pieces of setRoot. Add pointer to allocation lookup for scripts.Jason Sams2010-05-171-0/+2
| | | | Change-Id: I2c3075d2056f02bb834bfad403dc72da991f3156
* Convert renderscript from using ACC to LLVM for its compiler.Jason Sams2010-05-111-16/+6
| | | | | | | This will also require application to be updated to support the new compiler and data passing models. Change-Id: If078e3a5148af395ba1b936169a407d8c3ad727f
* Throttle low priority RS threads by sleeping once per frame to avoid ↵Jason Sams2009-12-091-1/+1
| | | | starving other apps.