summaryrefslogtreecommitdiff
path: root/rsScript.h
AgeCommit message (Collapse)Author
2015-04-21Code cleanup: Remove unused typedefs and declarations.Logan Chien
Change-Id: I48dafb2bc1dc335a52b289db2981397251f673c8
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-02-19Remove STL references from header filesYang Ni
b/19148482 Replaced std::string with android::String8, and std::pair with android::renderscript::Pair, in header files. Change-Id: I20ac1a3b7a019e5eee12fac46ad6adf64d850459
2015-02-04Runtime support for invocables in ScriptGroupsYang Ni
This also includes support for InvokeID Change-Id: I5b59df166ea30b309b8dd9623825ac0e72d03856
2015-02-02Runtime support for compiler kernel fusion.Yang Ni
The runtime will start a seperate process to call the new bcc to fuse kernels. Change-Id: Ia73ea917a126a5055ec97f13d90a5feaafd6a2f5
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-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
2014-07-08Adds support for multi-input kernels to Frameworks/RS.Chris Wailes
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
2014-06-25Fix one last use of size_t instead of uint32_t.Stephen Hines
Change-Id: I2d351be87fa09ce0fe3f1953e78cba399e5792b0
2013-09-10Detect use of RS objects in kernels to disable a ScriptGroup optimization.Stephen Hines
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
2013-06-17Add the name of the forEach functions to the tracing outputTobias Grosser
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
2013-04-11Add support for synchronous get().Tim Murray
Change-Id: Ic94f1e36f7cffaaeda11fa9f0bb70e441fe1e535
2012-12-19Cleanup diff with compat.Jason Sams
Change-Id: Ieedcdec03ccb05cac68cbebbd398e07cb885f4d3
2012-11-19Separate CPU driver impl from reference driver.Jason Sams
Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
2012-09-17Add backed for script groups.Jason Sams
Change-Id: If2fdbde7381fcdaeb54d41a913b855fd83d4f186
2012-05-01Support additional element/dim information for FieldPacker.Stephen Hines
BUG=6009244 Change-Id: I3c439559d61b24b26f9a36f2525f0a0e05b00e77
2012-02-22Support running ForEach on non-root functions.Stephen Hines
BUG=6000538 Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
2011-11-27Remove dead code.Logan Chien
Change-Id: I2838a40026291e7345b07911af3ba17278b63ffe
2011-11-22Fix script init error handling.Jason Sams
Change-Id: I7ceb0af4dfd12db0274985ff658f678d7af829ff
2011-11-10Fix setTimeZone() and use it properly in RSTest/rstime.Stephen Hines
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
2011-08-31Call .rs.dtor() when tearing down Scripts.Stephen Hines
BUG=5186750 This allows us to properly reference count any globals (static or extern) that need to potentially be cleaned up. Change-Id: I03d2c38c1e7a4ca96c40003d2eeecb6f395d5835
2011-06-03More work to make libRS buildable on the host.Alex Sakhartchouk
Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
2011-04-20Create runtime stubs for compute driver.Jason Sams
Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
2011-03-17Start seperating out RS compute implementation. Create halJason Sams
layer to seperate from runtime. Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
2010-11-16Fix ref counting for globals when set from java code.Jason Sams
Change-Id: I415b6ddeaab277e60233e905a6bae357cd5193eb
2010-11-10Code cleanup to make formatting consistentAlex Sakhartchouk
across all the renderscript files. Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
2010-10-08Removing fixed size arrays.Alex Sakhartchouk
Change-Id: I5c65b29a197013de2517cfb6dbe7abb9e24a688b
2010-08-12Thread launch strategies.Jason Sams
Change-Id: I506df786e815205a8e51906c2b517302c1ef2471
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-151st cut of ForEach and test.Jason Sams
Change-Id: I6534569c8d26db8b9691666134a555c8bf94184e
2010-05-28Rough implemetation of ForEach.Jason Sams
Remove launchID from root graphics script. Change-Id: I9f80c0d4df1264f2ee1624a6d7216b9dfdf8502e
2010-05-19Begin naming cleanup for renderscript runtime.Jason Sams
Prefix functions with "rs" or "rsg". Change-Id: I4435b486831bfab1ea473ccfad435b404e68f1c9
2010-05-13Rename ProgramFragmentStore to ProgramStore.Jason Sams
Change-Id: Ia8ad9ac856944838ced38a2f1e8f07387050bdfd
2010-05-11Convert renderscript from using ACC to LLVM for its compiler.Jason Sams
This will also require application to be updated to support the new compiler and data passing models. Change-Id: If078e3a5148af395ba1b936169a407d8c3ad727f
2009-12-09Throttle low priority RS threads by sleeping once per frame to avoid ↵Jason Sams
starving other apps.
2009-11-03Fix RS bugs. We were holding a pointer to the script text from the java vm. ↵Jason Sams
Move freeing of objects to before context teardown to allow allocations to clean up their data.
2009-09-28Fix but processing raster state pragma.Jason Sams
rename stateFragmentStore to stateStore
2009-09-25Improve renderscript context teardown. Track object in the system and then ↵Jason Sams
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.
2009-09-24Fix invokables to make sure script pointers are setup before invoking ↵Jason Sams
function calls. Reduce app startup time up to 1s.
2009-09-16Implement renderscript Invokables.Jason Sams
2009-08-17Update fountain and add writable flag to script slots.Jason Sams
2009-08-13Implement named slots and convert script.addType to script.setType to remove ↵Jason Sams
ordering restrictions.
2009-08-12Implement reflecting Java objects into the ACC enviroment.Jason Sams
2009-07-30First pass at implementing the Grass live wallpaper in RenderScript.Romain Guy
This change also adds second(), minute() and hour() to the RS library.
2009-06-16Switch fountain to use ProgramVertex rather than hard coded camers in ↵Jason Sams
scripts. Remove camera code from scripts.
2009-06-10Add named objects and implement support for ProgramFragmentStore and ↵Jason Sams
ProgramFragment to be used by name in scripts.
2009-06-09checkpoint pragma support. Includes more cleanup of script enviroment ↵Jason Sams
storage to keep the env settings in the base and only the per language state in ScriptC.