summaryrefslogtreecommitdiff
path: root/rsScript.h
Commit message (Collapse)AuthorAgeFilesLines
* Delete simple reduction implementation.David Gross2016-06-101-6/+2
| | | | | Bug: 27298560 Change-Id: I8c3d568e98aaf0b7d86881c985d13ed5b8e95338
* Support for general reduction kernels.David Gross2016-01-191-0/+5
| | | | | | | | | | | | | | 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
* Add a basic implementation of the reduce kernel API to the CPUMatt Wala2015-08-141-0/+5
| | | | | | | | | | reference implementation. Bug: 22631253 For now, this just runs a serial reduction on one thread. Change-Id: I34c96d24bb6f44274de72bb53160abcf79d143b0
* Code cleanup: Remove unused typedefs and declarations.Logan Chien2015-04-211-2/+0
| | | | Change-Id: I48dafb2bc1dc335a52b289db2981397251f673c8
* Fix issue with older structure sizesStephen Hines2015-04-141-0/+5
| | | | | | | | | 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
* Remove STL references from header filesYang Ni2015-02-191-1/+2
| | | | | | | | | b/19148482 Replaced std::string with android::String8, and std::pair with android::renderscript::Pair, in header files. Change-Id: I20ac1a3b7a019e5eee12fac46ad6adf64d850459
* Runtime support for invocables in ScriptGroupsYang Ni2015-02-041-10/+24
| | | | | | This also includes support for InvokeID Change-Id: I5b59df166ea30b309b8dd9623825ac0e72d03856
* Runtime support for compiler kernel fusion.Yang Ni2015-02-021-0/+1
| | | | | | The runtime will start a seperate process to call the new bcc to fuse kernels. Change-Id: Ia73ea917a126a5055ec97f13d90a5feaafd6a2f5
* Replace NULL macros with nullptr literals.Chris Wailes2014-08-201-1/+1
| | | | Change-Id: I918c40879aa547438f77e7d1a95fa2aa33bec398
* Collapse code paths for single- and multi-input kernels.Chris Wailes2014-08-151-9/+1
| | | | | | | | | | | 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-1/+9
| | | | | | This reverts commit 818cfa034e257c7bb48356257f5cb67334e19aa6. Change-Id: I59f39f52e6c8f60bb01cbcb8ccf2215eaf46a57f
* Collapse code paths for single- and multi-input kernels.Chris Wailes2014-08-121-9/+1
| | | | | | | | | | | 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
* Add 64bit large object supportJason Sams2014-07-081-0/+2
| | | | | | | | | | | | Add HAL hooks for filling in LO fields. Change-Id: Ib9bdee714a062de519d2a9708c1016404a1b11a4 Conflicts: driver/rsdBcc.cpp driver/rsdCore.cpp rsAllocation.h rs_hal.h
* Adds support for multi-input kernels to Frameworks/RS.Chris Wailes2014-07-081-1/+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
* Fix one last use of size_t instead of uint32_t.Stephen Hines2014-06-251-1/+1
| | | | Change-Id: I2d351be87fa09ce0fe3f1953e78cba399e5792b0
* Detect use of RS objects in kernels to disable a ScriptGroup optimization.Stephen Hines2013-09-101-0/+5
| | | | | | | | | | | | | | | | | | | Bug: 10394865 This change disables a ScriptGroup optimization when we can't guarantee that there is no implicit ordering between two kernels. In this case, it is possible to communicate between kernels using the same bound global RS object (like Allocation). A subsequent kernel in the ScriptGroup could accidentally pick up stale data, leading to incorrect results. Now, we disable this optimization whenever we see binds/sets of variables that are potentiall RS object types for a given Script/kernel. This is overly conservative, but sufficient for now. This change also fixes a small issue with preLaunch/postLaunch missing for the default ScriptGroup execution case. Change-Id: I0d19d200cc8dc397d68008a4df6ea423b1e4d04f
* Add the name of the forEach functions to the tracing outputTobias Grosser2013-06-171-0/+2
| | | | | | | | | | Instead of showing up as 'runForEach', kernels are now e.g. printed as 'runForEach_createAntLookup'. The String8 is carefully constructed here, such that we only pay the string processing overhead in case tracing is actually enabled. Change-Id: Id18319e271a02cbe888bcb9fe806794007d00fca
* Add support for synchronous get().Tim Murray2013-04-111-0/+1
| | | | Change-Id: Ic94f1e36f7cffaaeda11fa9f0bb70e441fe1e535
* Cleanup diff with compat.Jason Sams2012-12-191-0/+4
| | | | Change-Id: Ieedcdec03ccb05cac68cbebbd398e07cb885f4d3
* Separate CPU driver impl from reference driver.Jason Sams2012-11-191-2/+1
| | | | Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
* Add backed for script groups.Jason Sams2012-09-171-0/+27
| | | | Change-Id: If2fdbde7381fcdaeb54d41a913b855fd83d4f186
* Support additional element/dim information for FieldPacker.Stephen Hines2012-05-011-0/+2
| | | | | | BUG=6009244 Change-Id: I3c439559d61b24b26f9a36f2525f0a0e05b00e77
* Support running ForEach on non-root functions.Stephen Hines2012-02-221-1/+2
| | | | | | BUG=6000538 Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
* Remove dead code.Logan Chien2011-11-271-1/+0
| | | | Change-Id: I2838a40026291e7345b07911af3ba17278b63ffe
* Fix script init error handling.Jason Sams2011-11-221-0/+1
| | | | Change-Id: I7ceb0af4dfd12db0274985ff658f678d7af829ff
* Fix setTimeZone() and use it properly in RSTest/rstime.Stephen Hines2011-11-101-1/+0
| | | | | | | | | | | BUG=5470134 The original implementation for rsi_ScriptSetTimeZone() never actually did anything with the bytes received. This change allows it to safely update the timezone. RSTest is also updated to call setTimeZone(), so that users in different timezones can accurately get test results. Change-Id: I6cb1b3a0c3a417749ba39e0fe09cc9c7ab65c2e7
* Call .rs.dtor() when tearing down Scripts.Stephen Hines2011-08-311-0/+2
| | | | | | | | | BUG=5186750 This allows us to properly reference count any globals (static or extern) that need to potentially be cleaned up. Change-Id: I03d2c38c1e7a4ca96c40003d2eeecb6f395d5835
* More work to make libRS buildable on the host.Alex Sakhartchouk2011-06-031-2/+2
| | | | Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
* Create runtime stubs for compute driver.Jason Sams2011-04-201-19/+1
| | | | Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
* Start seperating out RS compute implementation. Create halJason Sams2011-03-171-10/+39
| | | | | | layer to seperate from runtime. Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
* Fix ref counting for globals when set from java code.Jason Sams2010-11-161-0/+1
| | | | Change-Id: I415b6ddeaab277e60233e905a6bae357cd5193eb
* Code cleanup to make formatting consistentAlex Sakhartchouk2010-11-101-3/+1
| | | | | | across all the renderscript files. Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
* Removing fixed size arrays.Alex Sakhartchouk2010-10-081-6/+6
| | | | Change-Id: I5c65b29a197013de2517cfb6dbe7abb9e24a688b
* Thread launch strategies.Jason Sams2010-08-121-0/+2
| | | | Change-Id: I506df786e815205a8e51906c2b517302c1ef2471
* Cleanup sendToClient and add rsGetDt().Jason Sams2010-07-281-1/+2
| | | | | | Remove legacy implemtation of matrix calls which were moved to llvm bc. Change-Id: I527740590067db3bcb2147233ef41fb057f1d2a8
* 1st cut of ForEach and test.Jason Sams2010-07-151-3/+5
| | | | Change-Id: I6534569c8d26db8b9691666134a555c8bf94184e
* Rough implemetation of ForEach.Jason Sams2010-05-281-2/+6
| | | | | | Remove launchID from root graphics script. Change-Id: I9f80c0d4df1264f2ee1624a6d7216b9dfdf8502e
* Begin naming cleanup for renderscript runtime.Jason Sams2010-05-191-4/+1
| | | | | | Prefix functions with "rs" or "rsg". Change-Id: I4435b486831bfab1ea473ccfad435b404e68f1c9
* Rename ProgramFragmentStore to ProgramStore.Jason Sams2010-05-131-2/+2
| | | | Change-Id: Ia8ad9ac856944838ced38a2f1e8f07387050bdfd
* Convert renderscript from using ACC to LLVM for its compiler.Jason Sams2010-05-111-9/+8
| | | | | | | 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.
* Fix RS bugs. We were holding a pointer to the script text from the java vm. ↵Jason Sams2009-11-031-1/+1
| | | | Move freeing of objects to before context teardown to allow allocations to clean up their data.
* Fix but processing raster state pragma.Jason Sams2009-09-281-1/+1
| | | | rename stateFragmentStore to stateStore
* Improve renderscript context teardown. Track object in the system and then ↵Jason Sams2009-09-251-1/+1
| | | | force their cleanup by releasing all user references once destroy context is called. Java layer will no longer send destroy notifications for objects garbage collected once a context is destroyed.
* Fix invokables to make sure script pointers are setup before invoking ↵Jason Sams2009-09-241-0/+1
| | | | function calls. Reduce app startup time up to 1s.
* Implement renderscript Invokables.Jason Sams2009-09-161-1/+7
|
* Update fountain and add writable flag to script slots.Jason Sams2009-08-171-0/+1
|
* Implement named slots and convert script.addType to script.setType to remove ↵Jason Sams2009-08-131-2/+2
| | | | ordering restrictions.
* Implement reflecting Java objects into the ACC enviroment.Jason Sams2009-08-121-1/+4
|
* First pass at implementing the Grass live wallpaper in RenderScript.Romain Guy2009-07-301-0/+3
| | | | This change also adds second(), minute() and hour() to the RS library.