Shih-wei Liao
6b32fab1db
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
2010-12-14 11:17:20 -08:00
Jason Sams
4859f5233c
Add multitouch support to physics test.
...
Fix context state overwrite calling invoke.
Change-Id: I7a71237bcf36abb31f98eb6d872501fdfb007d81
2010-12-11 17:42:30 -08:00
Shih-wei Liao
b7282bd2e7
Make ScriptC's mEnvironment.mIsThreadable survive the bcc caching and
...
then cache-reloading.
Change-Id: I0f5d54160dd9ee567fae53c69b246f99096993da
2010-12-07 13:47:14 -08:00
Shih-wei Liao
a914f340ae
Add caching support of BCC binaries.
...
Change-Id: I1e75bb84d88319cb6f1bbe6d907cf6e8ed546142
2010-11-18 00:03:23 -08:00
Jason Sams
a17af04e62
Create holder inner class for pushing context state.
...
Fix bug with rsForEach corrupting parent context state.
Remove workaround from rsBalls.
Change-Id: I43a948536e70d44645d1c2ef7b97e1c5906f6943
2010-11-17 15:29:32 -08:00
Jason Sams
7a21ee6148
Fix crash with extended debugging.
...
Change-Id: I982a7c7ea7ccae074be5254032c43a862137747a
2010-11-16 12:19:37 -08:00
Alex Sakhartchouk
ed9f210568
Code cleanup to make formatting consistent
...
across all the renderscript files.
Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
2010-11-10 11:30:51 -08:00
Jason Sams
8f0adba7cb
Add code to mark functions rather than whole files as threadable.
...
Change-Id: Ie635fbbb96b8ade48501ec564fe135edc256537d
2010-11-01 14:26:30 -07:00
Jason Sams
ab3ff25a6f
Remove excessive logging.
...
Change-Id: I22497b1b169ca0f3edbc20649594f6f58f6144d0
2010-10-29 16:49:08 -07:00
Jason Sams
5585e36a41
Balls test app.
...
Change-Id: I842f43e37145f8112120e2bd49925f81c588c40c
2010-10-29 10:28:13 -07:00
Shih-wei Liao
0175e01f54
Enable optimized bitcode that is also jitted faster.
...
Change-Id: I08832cfaf4e8465c16b445eeb1b82f72d874d0ef
2010-10-23 22:12:29 -07:00
Jason Sams
b38d534873
Fix refcounting bugs where the sys refcount
...
could be corrupted during async type creation.
Change-Id: If42828e92990598b0cb5da81c82ea513f94725f2
Fix stack object deletion bug.
Change-Id: I2c723aa5ad15e0c99dc9cd0cfbc7db80bace172a
2010-10-21 21:17:30 -07:00
Jason Sams
3b9c52ab8c
Async type creation.
...
Change-Id: I4d98446fabbf7e8a98c97f85b573a58c8a0c58c2
2010-10-14 17:48:46 -07:00
Jason Sams
2222aa9003
Cleanup error message for null binding address.
...
Only print the debug if script debugging is enabled.
Change-Id: I72b9c2a73d49987a73b354442e9defec02b93bc6
Implement inner utiliy class to specify surface formats.
Remove boxed bitmap upload functions.
Change-Id: I3ff5ca59e53d02b9d75277afa947ea3d218459eb
2010-10-10 17:58:25 -07:00
Alex Sakhartchouk
6f91cb6af7
Removing fixed size arrays.
...
Change-Id: I5c65b29a197013de2517cfb6dbe7abb9e24a688b
2010-10-08 15:00:05 -07:00
Stephen Hines
01f0ad7c13
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
2010-09-29 16:58:17 -07:00
Jason Sams
f3470edc8a
Fix safe for mp check in ScriptC.
...
Change-Id: Id91b3c1e99b2705fd39f9e74a52c61110805e246
2010-09-28 14:41:42 -07:00
Alex Sakhartchouk
eb1a73c2be
Adding timer to display renderscript jit duration.
...
Change-Id: I8ab1dea60a833cd11771cf145cadbc96ac52b934
2010-09-26 14:53:21 -07:00
Jason Sams
f119b91e1a
Better debugging for scripts.
...
Change-Id: I916cea86dcfdb43a9465708ea4a16f19cbe42370
2010-09-22 15:57:41 -07:00
Jason Sams
d081fffab5
Cleanup GL setup code and remove legacy 1.1 paths.
...
Reset pointers to NULL when allocations are unbound.
Change-Id: Ifaba634ecbb154970b7fb47faa8e6475d16d2f66
2010-09-16 18:18:29 -07:00
Anatol Pomazau
c24ffe6fdc
Fix header path.
...
Now libbcc is located under framework/compile
Change-Id: I39cd0d27da73ce31e8cb92772bfda3a942ccd27c
2010-09-07 17:33:01 -07:00
Jason Sams
2cbd298f39
Thread launch strategies.
...
Change-Id: I506df786e815205a8e51906c2b517302c1ef2471
2010-08-12 12:49:31 -07:00
Shih-wei Liao
0787646755
Use bccGetExportVars to get mFieldCount, instead of hardwiring "100" in calloc.
...
Change-Id: I6023b93865f785779b966acf03bf120078ac3c74
2010-07-20 16:43:25 -07:00
Jason Sams
c7f4e41ecd
Update imageprocessing to remove generated files.
...
Fix thread launch race condition.
Change-Id: I24d7f87ac87db6f9e3418d6a429471a71d2c9e9d
2010-07-20 15:09:00 -07:00
Jason Sams
8e6c17fcc4
Threading RS ForEach.
...
Change-Id: I5d6fe4db2b6ac0613394bc5a066ff90ec146d60e
2010-07-19 15:38:19 -07:00
Jason Sams
8f8a5724be
1st cut of ForEach and test.
...
Change-Id: I6534569c8d26db8b9691666134a555c8bf94184e
2010-07-15 17:11:13 -07:00
Jason Sams
96ed4cfa62
Remove InvokeData and add ContextFinish to generate a sync point.
...
Change-Id: I27da8bf5fba2c8a428964cb6a5e66dd7a94958d8
2010-06-15 12:15:57 -07:00
Jason Sams
e29f3e74f7
Begin using reflected files.
...
Change-Id: I5307a0eac9c206b85c0cf7451d3f8300134bf8e3
2010-06-08 15:40:48 -07:00
Jason Sams
f17bccc905
Rough implemetation of ForEach.
...
Remove launchID from root graphics script.
Change-Id: I9f80c0d4df1264f2ee1624a6d7216b9dfdf8502e
2010-05-28 18:23:22 -07:00
Jason Sams
d79b2e9f8b
Begin naming cleanup for renderscript runtime.
...
Prefix functions with "rs" or "rsg".
Change-Id: I4435b486831bfab1ea473ccfad435b404e68f1c9
2010-05-19 17:23:08 -07:00
Jason Sams
536923df75
Split ScriptC Lib into CL, GL, and basic.
...
Change-Id: Iadab35f2a967a1afd7a2fd13216d0a7acf4b6a50
2010-05-18 13:35:45 -07:00
Jason Sams
c378dab087
Remove excess logging.
...
Change-Id: Ib4af6428c5fd87c3891f41eca6ca43d84f0edc97
2010-05-17 17:28:12 -07:00
Jason Sams
1de0b87168
Remove more pieces of setRoot. Add pointer to allocation lookup for scripts.
...
Change-Id: I2c3075d2056f02bb834bfad403dc72da991f3156
2010-05-17 14:55:34 -07:00
Jason Sams
ec67275e5f
Delete legacy setDefine API.
...
Change-Id: I1bae13533ab9efea3d3b0ebb6a3711343e922f8a
2010-05-14 16:51:22 -07:00
Jason Sams
54db59c359
Rename ProgramFragmentStore to ProgramStore.
...
Change-Id: Ia8ad9ac856944838ced38a2f1e8f07387050bdfd
2010-05-13 18:35:01 -07:00
Jason Sams
4d3399337d
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
2010-05-11 14:03:58 -07:00
Jason Sams
156cce6980
Improve RS error handling. On errors RS will now store the error and a message that can be read from the app. RS will then not continue rendering frames while an unchecked error is present until new state is received.
2010-03-03 14:14:37 -08:00
Jason Sams
e17964e150
Add RS support for generic attribs as input to vertex programs.
2010-01-04 16:52:27 -08:00
Jason Sams
718cd1f322
Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures.
...
This will break some apps, checkings for other projects will follow to unbreak them.
2009-12-23 14:35:29 -08:00
Jason Sams
0011bcf57f
Continue development of es2.0 user shader support for renderscript. This change cleans up ProgramVertex creation and adds support for passing input, output, and constant type info.
2009-12-15 12:58:36 -08:00
Jason Sams
b9d5c574ff
Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
2009-12-09 11:05:45 -08:00
Jason Sams
9d5e03db99
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.
2009-11-03 11:25:42 -08:00
Jason Sams
996db8dace
Fix tls crash on startup if more than one RS contexts are created in one process.
2009-10-06 17:16:55 -07:00
Jason Sams
5235cf3f41
Fix but processing raster state pragma.
...
rename stateFragmentStore to stateStore
2009-09-28 18:12:56 -07:00
Jason Sams
61f08d6fa7
Improved object lifecycle tracking and fix leaks.
2009-09-25 16:37:33 -07:00
Jason Sams
66b2771d74
Reduce debugging spew and add props to selectivly re-enable it.
...
change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe
2009-09-25 15:25:00 -07:00
Jason Sams
a9e7a05b84
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.
2009-09-25 14:51:22 -07:00
Jason Sams
d3f2eaf60a
Minor cleanup of profile and compile logging.
2009-09-24 15:42:52 -07:00
Jason Sams
e60446b9c1
Fix invokables to make sure script pointers are setup before invoking function calls. Reduce app startup time up to 1s.
2009-09-24 14:55:38 -07:00
Jason Sams
be2e84193f
Implement renderscript Invokables.
2009-09-16 15:04:38 -07:00