Stephen Hines
976ae27270
Add support for handling a bitcode wrapper to librs.
...
BUG=5425905
Change-Id: I75676060703df6d9043b287fea900c4379455ee2
2011-12-01 16:37:00 -08:00
Stephen Hines
466bdc4008
Fix remaining .rs.dtor() issue for RS.
...
BUG=5186750
Change-Id: I74765b844d28ed780f9c9e291b8e0de94352f74b
2011-09-01 18:07:11 -07:00
Stephen Hines
4382467a80
Start using bcinfo components within librs.
...
BUG=4942491
Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
2011-08-03 18:46:56 -07:00
Jason Sams
92b0eab07e
Add slot number to forEach hal.
...
Change-Id: I0f2992d5f4128422d07f897b335c219cc7f1d02c
2011-07-13 11:26:26 -07:00
Alex Sakhartchouk
17a8a1939d
More work to make libRS buildable on the host.
...
Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
2011-06-03 10:18:01 -07:00
Alex Sakhartchouk
e7c4a7565c
Modifying libRS internal communication to handle network rendering.
...
Change-Id: I8c8b3cc3402ecf4ba774e1d668dce25ff0af0e5a
2011-04-25 14:30:27 -07:00
Jason Sams
fcf7231249
Create runtime stubs for compute driver.
...
Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
2011-04-20 15:09:01 -07:00
Jason Sams
48f505657a
Seperate GL from RS program store.
...
Change-Id: I0eae9c0699845af8e8611b065e70738cc9f2b15c
2011-04-04 17:09:37 -07:00
Jason Sams
55d2a25402
Migrate thread launch to driver.
...
Change-Id: If182c524cceb327547640f22f956856d291d1787
2011-03-17 16:14:27 -07:00
Jason Sams
e4a06c5fc7
Start seperating out RS compute implementation. Create hal
...
layer to seperate from runtime.
Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
2011-03-17 16:13:03 -07:00
Alex Sakhartchouk
ebd65bbb84
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
2011-02-25 09:34:33 -08:00
Shih-wei Liao
9f1f586f80
Use bccLinkFile instead of bccLinkBC. Remove hacking.
...
Change-Id: I0ffea89553e3229ee5a3262846462298fc0f5dea
2011-02-01 04:06:55 -08:00
Jason Sams
38f8d9d7a1
Correctly free resouces bound to scripts when the scripts are deleted.
...
Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070
b: 3381615
2011-01-27 19:36:54 -08:00
Jason Sams
c55de66ad2
Cleanup script init to fix bogus log printing and
...
reduce memory churn.
Change-Id: I0bf5392102e3d59fea81f5f9f832887113602b7f
2011-01-23 17:48:45 -08:00
Shih-wei Liao
040d7d8ce7
Handle fatal errors from calling bccRegisterSymbolCallback (if any).
...
Change-Id: I53f35b6efd26abc1e8559f6f1e37abb55a1df7db
2011-01-20 12:35:44 -08:00
Jason Sams
fdc54a97ee
Check and propogate errors from llvm.
...
Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
2011-01-19 16:14:21 -08:00
Shih-wei Liao
1ad9612e99
1. fp_mad.rs: Pass C99 check.
...
2. Include C99 header (Will be fixed later at build.git.)
Change-Id: I2864e081b2635dfc4fc0c85f746f6d0ce0b01af5
2011-01-19 02:18:45 -08:00
Shih-wei Liao
cbb7279e7b
Fix the build.
...
Change-Id: I23c4146cb19540351c33b5823df25d6e2b204402
2011-01-18 22:50:18 -08:00
Stephen Hines
5dd60be169
Validate that version pragma is correct.
...
Change-Id: I42dced79b0df52c101525799081bc8a5426c11e4
2011-01-18 14:10:44 -08:00
Stephen Hines
5ef3dddd0d
Remove erroneous log message.
...
This change also enables pragmas to be checked for scripts that do not have a
root() function.
Change-Id: I4f41300b623581483970050680ac96c54f99d34a
2011-01-17 17:31:58 -08:00
Shih-wei Liao
0e7be13973
Fix bug in on-device linking.
...
Change-Id: Ic027d4cbf240a45da95a024067215a572c3bd7a9
2011-01-16 15:38:13 -08:00
Shih-wei Liao
71a2e13d19
On-device linking using bccLinkBC. Note that we switch to getFile interface
...
on the libbcc side.
Change-Id: Iec4e0624f1448161c0a2163f3ce725ce6cdf3267
2011-01-16 03:57:20 -08:00
Shih-wei Liao
076b770c2a
bcc interface fixed.
...
Change-Id: I81349750e58f119a9c2ad596f376c7e39d5f0d4e
2011-01-14 06:21:28 -08:00
Shih-wei Liao
0394d2495a
Disable on-device linking
...
Change-Id: I7c416c7c9714fae0722e61c4f0368fbdb7d808b3
2011-01-13 02:05:34 -08:00
Shih-wei Liao
067e7b261a
On-device linking.
...
Change-Id: I609f575f1c2b9e9c3de0d8c16eb06b66b744bcb5
2011-01-12 19:14:27 -08:00
Shih-wei Liao
8845fbbc8e
For caching, didn't do CompileBC. Rename bccCompileBC as bccPrepareExecutable.
...
Change-Id: Ie63cd87bf377e2daf0c81d81c0bf86a6195edf46
2011-01-07 19:24:41 -08:00
Shih-wei Liao
9d4024d540
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
2011-01-07 18:28:02 -08:00
Jason Sams
5c68a712da
Fix teardown bug found in books.
...
Change-Id: I9ac449b644108148b331e0c552f289bf80a07f7e
2010-12-24 14:42:54 -08:00
Shih-wei Liao
c5300f14ad
Clean-up.
...
Change-Id: I43045da43a5e48e1bf759cd18c1b90d45f243450
2010-12-23 23:07:02 +08:00
Shih-wei Liao
eeca435dc6
Stale cache management to address a P1 bug # 3296131.
...
Change-Id: I593f35a91c4a14c055828f8989fe01b9e7790039
2010-12-20 21:02:32 +08:00
Shih-wei Liao
667fb848aa
Whenever LoadBinary fails, recompile. Fixing the multi-instance bug.
...
Change-Id: Ib1565efe1353ed788a3ed3c81c6067e92d8ef0e5
2010-12-16 04:58:35 -08:00
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