History log of /frameworks/rs/rsScriptC.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4b3c34e6833e39bc89c2128002806b654b8e623d 11-Jun-2014 Chris Wailes <chriswailes@google.com> Adds support for multi-input kernels to Frameworks/RS.

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
* Packs base pointers and step values for multi-input kernels into the new
RsForEachStubParamStruct members.

Change-Id: I46d2834c37075b2a2407fd8b010546818a4540d1
f4d216ee0f0ef18edbde208a61dc4e2fe4c8f050 10-Jun-2014 Jean-Luc Brouillet <jeanluc@google.com> Remove FAKE_ARM64_BUILD now that we have 64 build working.

Change-Id: Ieb6627adcd1d097fe709559e182efcfc6841d13e
23037481bccbc09baa8f76b0015534571ccd2a4e 26-Mar-2014 Jean-Luc Brouillet <jeanluc@google.com> Remove the obsolete ScriptCState. Simplify cascading #ifdefs.

Change-Id: I1cb561c6325d80c764d386f7b76e6a416261cd8f

modified: rsContext.h
modified: rsScriptC.cpp
modified: rsScriptC.h
e195a3f57ace3b66d313a6ee88c6e93d5c9d87f4 13-Mar-2014 Tim Murray <timmurray@google.com> Make RS compile on ARM64.

bug 13280327

Change-Id: I79080c448ca17d0cba8df075737c22b24ce9a085
93eacc7ce0aad4314b4cb41a281f59ce54bb3286 18-Dec-2012 Jason Sams <jsams@google.com> Cleanup diff with compat.

Change-Id: Ieedcdec03ccb05cac68cbebbd398e07cb885f4d3
709a0978ae141198018ca9769f8d96292a8928e6 16-Nov-2012 Jason Sams <jsams@google.com> Separate CPU driver impl from reference driver.

Change-Id: Ifb484edda665959b81d7b1f890d108bfa20a535d
e78c14bd277e60d5619516e4088a04572a5b250f 02-Oct-2012 Tim Murray <timmurray@google.com> Ensure that the cache directory exists before calling compiler.

Bug: 7077014
Change-Id: Iab94a265193d4ff749573520939c974a982ac7c1
807fdc4b6f3fb893015ee136565d6151bb2332d3 26-Jul-2012 Jason Sams <jsams@google.com> Move memory layout to driver.

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
e3150cfb3edb028407669e4a65e087eae77e718c 25-Jul-2012 Jason Sams <jsams@google.com> Plumb context through for serialization.

Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f
bb5c0b1ef124e845564e928fe6d24a37f30e99ed 23-Feb-2012 Stephen Hines <srhines@google.com> Merge "Support running ForEach on non-root functions."
4419977d78018a9933c7f455fe001f644f2d638b 22-Feb-2012 Stephen Hines <srhines@google.com> Support running ForEach on non-root functions.


Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
3715b00e7b10a2624c1d5c696186c7a2f4a75a91 17-Feb-2012 Jason Sams <rjsams@android.com> Rename three header files to free namespace for api.

Change-Id: Ie9ef65a477373c30b2d5b02248f62e768b6f27ae
cbb0b8aceedb9146ba901cba1fbd6d1e9ca88f51 02-Aug-2011 Stephen Hines <srhines@google.com> Start using bcinfo components within librs.


Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
b81a0eb8180791e4eaab1253b59fa8bd562b046b 03-Jun-2011 Alex Sakhartchouk <alexst@google.com> More work to make libRS buildable on the host.

Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
87fe59a2f4d4c74539bfa0bff5f9a7e320e99415 21-Apr-2011 Jason Sams <rjsams@android.com> Create runtime stubs for compute driver.

Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
cdfdb8f2cdf4668c476cac842212892b2505ff3f 18-Mar-2011 Jason Sams <rjsams@android.com> Migrate thread launch to driver.

Change-Id: If182c524cceb327547640f22f956856d291d1787
bad807405b2b9764372af1ad24bcfd4fb1f33d8e 17-Mar-2011 Jason Sams <rjsams@android.com> Start seperating out RS compute implementation. Create hal
layer to seperate from runtime.

Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
02000b3cdcb2ac369bd06313932b26d4b8e023a9 25-Feb-2011 Alex Sakhartchouk <alexst@google.com> Moving dependency includes out of librs headers.

When we want to use it on the host, we shouldn't need to go hunting for every external dependency

Change-Id: I885262acdcdf5ede4a9392235f35d5e2f7038e8b
2e8665de7c0eb4514c67baf8693d61c892e5303d 27-Jan-2011 Jason Sams <rjsams@android.com> Correctly free resouces bound to scripts when the scripts are deleted.

Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070
b: 3381615
249d453869cca82dcb57123f6d1c8df3ca9f4372 24-Jan-2011 Jason Sams <rjsams@android.com> Cleanup script init to fix bogus log printing and
reduce memory churn.

Change-Id: I0bf5392102e3d59fea81f5f9f832887113602b7f
26b2c9f5b0d77b69fb5edf96dab7d57f1de1d594 20-Jan-2011 Jason Sams <rjsams@android.com> Check and propogate errors from llvm.

Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
2b2e62117780d89bcd38f3ae453c4105a360ff79 14-Jan-2011 Shih-wei Liao <sliao@google.com> bcc interface fixed.

Change-Id: I81349750e58f119a9c2ad596f376c7e39d5f0d4e
37150def08fc971e8422245efef27265331cace4 08-Jan-2011 Shih-wei Liao <sliao@google.com> 1. LOG 4 fatal error paths (TODO: These 4 places should signal Java exceptions.)
2. Prepare on-device linking.
3. Clean up code.

Change-Id: Iac4148431dbe1c3c4044f7394eb51a1332f513f9
59962077fed57ff81f91b53a6a965dd4276f3544 03-Jan-2011 Shih-wei Liao <sliao@google.com> Rename bcc::BCCscript -> bcc::Script. Ideally, should do:
include bcc.h instead of forward declaration.

Change-Id: I649f62d240ed4e13eb95a8988a9ee202b19e7436
ce8a079bd4d296f9f1a24d7a5808d57f71dfc2e4 20-Dec-2010 Shih-wei Liao <sliao@google.com> Stale cache management to address a P1 bug # 3296131.

Change-Id: I593f35a91c4a14c055828f8989fe01b9e7790039
15849d9a926fbd83587b9da30b8888574998a0fd 10-Dec-2010 Shih-wei Liao <sliao@google.com> 1. Add Context to a RenderScript or RenderScriptGL instance.
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
eecbdd5c494509423d816d2644f6214a98ff0dea 29-Nov-2010 Iain Merrick <husky@google.com> Fix 'BCCscript' build break.

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
9503b66e5329703535f7cc71a0755e6f3b1e39a6 08-Nov-2010 Shih-wei Liao <sliao@google.com> Add caching support of BCC binaries.

Change-Id: I1e75bb84d88319cb6f1bbe6d907cf6e8ed546142
afb743aca56c18beb7ab924e75cb6e070ef3e55a 10-Nov-2010 Alex Sakhartchouk <alexst@google.com> Code cleanup to make formatting consistent
across all the renderscript files.

Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
6bfc1b91dc7684f8ad9dc9f605e92ed8a31d5bbe 01-Nov-2010 Jason Sams <rjsams@android.com> Add code to mark functions rather than whole files as threadable.

Change-Id: Ie635fbbb96b8ade48501ec564fe135edc256537d
700ba38f022208686523ab4280c4fc9f102aa273 09-Oct-2010 Alex Sakhartchouk <alexst@google.com> Removing fixed size arrays.

Change-Id: I5c65b29a197013de2517cfb6dbe7abb9e24a688b
01b7d2995f9cbd33a9ccdf861fe959743a4b9954 29-Sep-2010 Stephen Hines <srhines@google.com> Fix clear() operation for rsScriptC.

- 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
ace3e01f07252ee0fa47fcf1ac48864d8220b90e 16-Jul-2010 Jason Sams <rjsams@android.com> 1st cut of ForEach and test.

Change-Id: I6534569c8d26db8b9691666134a555c8bf94184e
b825f67adb5d1e1751fe108e6dbf9c6f2555c283 04-Jun-2010 Alex Sakhartchouk <alexst@google.com> Creating the jni and java layer to integrate a3d

Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37
c61346b91434307c5003029017b54ce9c49112be 29-May-2010 Jason Sams <rjsams@android.com> Rough implemetation of ForEach.
Remove launchID from root graphics script.

Change-Id: I9f80c0d4df1264f2ee1624a6d7216b9dfdf8502e
fb6b614bcea88a587a7ea4530be45ff0ffa0210e 21-May-2010 Alex Sakhartchouk <alexst@google.com> Removed unnecessary change based on comments.
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
22fa371bf64b8aae786acfe5d711af21afb13a93 20-May-2010 Jason Sams <rjsams@android.com> Begin naming cleanup for renderscript runtime.
Prefix functions with "rs" or "rsg".

Change-Id: I4435b486831bfab1ea473ccfad435b404e68f1c9
aeb094b520d8ea49b74129927578f18f758c873e 18-May-2010 Jason Sams <rjsams@android.com> Split ScriptC Lib into CL, GL, and basic.

Change-Id: Iadab35f2a967a1afd7a2fd13216d0a7acf4b6a50
ce92d4baf7a5bce097228fdd4498601764cd4014 17-May-2010 Jason Sams <rjsams@android.com> Remove more pieces of setRoot. Add pointer to allocation lookup for scripts.

Change-Id: I2c3075d2056f02bb834bfad403dc72da991f3156
be36bf3a76481737a7fa606a04144ceef80eb4f2 11-May-2010 Jason Sams <rjsams@android.com> Convert renderscript from using ACC to LLVM for its compiler.

This will also require application to be updated to support
the new compiler and data passing models.

Change-Id: If078e3a5148af395ba1b936169a407d8c3ad727f
2dca84dd6c07992f78ad050177975f16486dd77e 09-Dec-2009 Jason Sams <rjsams@android.com> Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
e402ed33486730f1d06f080cdfc48132bf612b3a 03-Nov-2009 Jason Sams <rjsams@android.com> Fix RS bugs. We were holding a pointer to the script text from the java vm. Move freeing of objects to before context teardown to allow allocations to clean up their data.
1fddd90849deaae89b546ff492c345d485bbce42 26-Sep-2009 Jason Sams <rjsams@android.com> Reduce debugging spew and add props to selectivly re-enable it.

change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe
e514b45de8561fbc6ef6770845102ca10b0a69d7 25-Sep-2009 Jason Sams <rjsams@android.com> Improve renderscript context teardown. Track object in the system and then 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.
ada7f272890d8791bc518c95989ad7d13050834d 24-Sep-2009 Jason Sams <rjsams@android.com> Fix invokables to make sure script pointers are setup before invoking function calls. Reduce app startup time up to 1s.
8c6bc6930d4996b897de8e5113da4a4efae2310c 17-Sep-2009 Jason Sams <rjsams@android.com> Implement renderscript Invokables.
1d54f10f3c23e0d7ec57e52ec3b0701a2a5ed24e 04-Sep-2009 Jason Sams <rjsams@android.com> Improve structure support using symbol lookup of named structures in scripts to allow them to appear as just pointers to structs.
90b36a88cf0cc549b296ac15a249ea7786c6de9e 17-Aug-2009 Jason Sams <rjsams@android.com> Update fountain and add writable flag to script slots.
fa51719e6c1bd17b3f347477b4827face9ab647e 13-Aug-2009 Jason Sams <rjsams@android.com> Implement named slots and convert script.addType to script.setType to remove ordering restrictions.
8b2c065dfc16c148e2829a19e83d2269b9bcd4cc 13-Aug-2009 Jason Sams <rjsams@android.com> Implement reflecting Java objects into the ACC enviroment.
57b79ceb1126e3797fa42367b97dd7bcfcda1ed9 10-Aug-2009 Joe Onorato <joeo@android.com> Let java put #defines into renderscript
e45ac6e91864f2a6617b6a2c0aa87cdb62cf58fd 20-Jul-2009 Jason Sams <rjsams@android.com> Split rsScriptC into class implemtation and library functions. Update test apps, all 3 should be working.
f1685045e3423f2e342c3d74c206a25d72eba89d 17-Jul-2009 Jason Sams <rjsams@android.com> Fix conflict with automatic DPI support on high density devices by forcing bitmap loading to not be scaled.
29df66f82aeef7fa7e2cf00edbf00d43c822b05a 17-Jul-2009 Jason Sams <rjsams@android.com> Update rollo and renderscript to the new ACC compiler interface.
e57691037aea219562ac686429b4b98202aab7bc 20-Jun-2009 Jason Sams <rjsams@android.com> checkpoint filmstrip, implemented TLS.
a0a1b6fbece2eb8d72d788422ab3e5f58d5a9216 11-Jun-2009 Jason Sams <rjsams@android.com> Add named objects and implement support for ProgramFragmentStore and ProgramFragment to be used by name in scripts.
1030893d9b99b72468034da13df025bda479bb97 09-Jun-2009 Jason Sams <rjsams@android.com> checkpoint pragma support. Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC.
928b734b2fbba0800567c8b7e686bcf5f45483cc 09-Jun-2009 Jason Sams <rjsams@android.com> Move placement of script enviroment data to base.
efb8de1ef851c9c2a042ad06f64e33bb8b366041 09-Jun-2009 Jason Sams <rjsams@android.com> Fix build issue and ref count bug with scripts.
1f52633fefd1862451e6a30209d590680d02beec 06-Jun-2009 Jason Sams <rjsams@android.com> Move call to compiler from jni to core library code.
a44cb29164726cd9d812117819abdd7b60dfdd93 05-Jun-2009 Jason Sams <rjsams@android.com> Add support for scripts to return an animation flag. This allows them to indicate they are generating changing content and the rs thread to sleep if the content is static.
1ef8b80bc49f415b93912fe7335f852953bde4a4 29-May-2009 Jack Palevich <jackpal@google.com> Delete the acc script when deleting the Renderscript rsScriptC object.

Previously we had been leaking the ACCscript object.
326e0ddf89e8df2837752fbfd7a014814b32082c 22-May-2009 Jason Sams <jsams@google.com> Add the Renderscript library. (Not in the build by default yet.)

This library can be used to create animated 3D User Interfaces.

This library is currently under heavy development, so it's not part of
the build by default.

In order to build this library, you must define


in your build environment.

You will also have to manually edit


And add libRS and libRS_jni at the end like this (exact address may change.)

libRS.so 0x9A100000
libRS_jni.so 0x9A000000