64 Commits

Author SHA1 Message Date
Jason Sams
f166d9b5a2 Add object validity checking.
Change-Id: I2613e87b09a6e560f0381d4ed620d60a10bc30e4
2010-09-30 18:15:52 -07:00
Jason Sams
4fd8bb4b56 Fix function name match for refcounting funcs.
Change-Id: I3fa8211200023e0df494cd9aab698e215b3c2164
2010-09-17 13:17:17 -07:00
Alex Sakhartchouk
8e95466b5a Adding ability to dirty the allocation and notify shaders using it.
Change-Id: Id5ac8dbba5185cb1f43bedcf4098fcef9f477c51
2010-09-02 10:45:39 -07:00
Jason Sams
deb0008c63 Remove ACC and other legacy bits from RS.
Change-Id: I12a3b0477f3201ec7ca63564ae2b387ecc89dedf
2010-09-01 14:23:13 -07:00
Jason Sams
02f62aa7d1 Support reference operations in RS scripts.
Change-Id: I9cb5f3cb71823ab24ca51bf0167a0f52cf0691f9
2010-08-16 12:41:48 -07:00
Jason Sams
d64188a4a4 Fix debugging support for float vectors and add matrix debugging.
Change-Id: Ie1ee3764a32889f3c39b923186f14af74ecb772f
2010-08-06 16:22:50 -07:00
Jason Sams
f0690c4f29 Cleanup of signed/unsigned
Make all functions overloadable.

Change-Id: I443c83afcf9a7acfae394585201f081681f309db

Update examples.

Change-Id: I100d6fa8dd1af376bcee0b2c42c5aabe9c03bb6e

force rebuild of all .rs files to pick up core header changes.

Change-Id: I6231a8a024388481ca231507e83b108ebdbc3500
2010-07-29 19:10:25 -07:00
Jason Sams
17966517a1 Cleanup sendToClient and add rsGetDt().
Remove legacy implemtation of matrix calls which were moved to llvm bc.

Change-Id: I527740590067db3bcb2147233ef41fb057f1d2a8
2010-07-28 11:17:53 -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
fae3f6b415 Add matrix ops to RSH headers.
Change-Id: I7e2843983a12e0155114b4a18813799e4341d26f
2010-06-24 13:54:11 -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
1001a5b97b Remove noise functions and update images processing to use new rs namespace names.
Change-Id: I2dc9b5ec7877acd630bea1a011ecc4a6d43a31eb
2010-05-20 17:56:05 -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
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
54db59c359 Rename ProgramFragmentStore to ProgramStore.
Change-Id: Ia8ad9ac856944838ced38a2f1e8f07387050bdfd
2010-05-13 18:35:01 -07:00
Jason Sams
0c677318b5 Add missing bindProgramRaster to scriptC_lib.
Change-Id: I06a7075a94ef907478f986b59ded4ff3e2766585
2010-05-12 18:26:52 -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
c2908e60c9 Support defered generation of mipmaps. With this change we support mipmap generation when the texture is uploaded to GL without requiring RS to retain the full chain. 2010-02-23 17:44:28 -08:00
Jason Sams
df48b57114 Cleanup seperation of Legacy and user attribs. All user programs now use the new names. Legacy vertex attribs are given default names. 2010-01-25 12:41:19 -08:00
Joe Onorato
af07b591bb am b3699b14: am 836e1666: Merge "add drawSpriteScreenspaceCropped to renderscript" into eclair
Merge commit 'b3699b14be3a3db1d75ea4c38853b0a53d14b1be'

* commit 'b3699b14be3a3db1d75ea4c38853b0a53d14b1be':
  add drawSpriteScreenspaceCropped to renderscript
2010-01-20 14:35:52 -08:00
Joe Onorato
6656c1be2b add drawSpriteScreenspaceCropped to renderscript 2010-01-14 16:00:04 -05:00
Jason Sams
ea87e96959 Implement type generation for user uniforms in vertex shader. 2010-01-12 12:12:28 -08:00
Jason Sams
a09a6e145b More complete support for named attribs. Adds user typed attribs as available to programVertex. Non user attribs are not treated like user for GL2 for simplicity. 2010-01-06 12:01:51 -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
68afd01ec9 Move texture bindings to base program object. Change ProgramFragment creation to require a texture format in 1.0 mode. 2009-12-17 16:55:08 -08:00
Jason Sams
7b7f29a35c Fix live wallpaper many. Z coordinate was being ignored for draw quad call. 2009-12-16 14:24:17 -08:00
Jason Sams
ce9adcce02 Fix emulated glColor in es2 mode. 2009-12-16 14:13:06 -08:00
Jason Sams
bb51c40d89 Begin gl2 support. Renderscript still uses GL1.1 by default. However, 2.0 can be enabled and will render most tests correctly. 2009-11-25 13:22:07 -08:00
Romain Guy
baed727481 Don't feed the timezone to RenderScript time functions, let the library figure it out.
Bug #2211070.

Change-Id: I5975651fd12399fb8dfe283dfdfaa17569738c7b
2009-11-11 15:36:06 -08:00
Romain Guy
d7fa122dfe Add new RenderScript sample: ImageProcessing.
Change-Id: I5e482bbc34911c940a3a74258f8f8549b1939bc4
2009-10-09 16:05:25 -07:00
Jason Sams
bd2197fb00 Add script to script call support. Add exception to catch out of bound index data when added to TriangleMeshBuilder. 2009-10-07 18:14:01 -07:00
Jason Sams
516c319115 Implement data push from scripts. Fixes the problem where apps would have to poll to monitor a scripts state.
Fix bug in StoreState where state could be overridden by the default unless the script used more than one state.

Change only impacts renderscript and renderscript apps.
2009-10-06 13:58:47 -07:00
Jason Sams
e9ad9a719d Implement screen aligned bitmap drawing support. 2009-09-30 17:40:06 -07:00
Romain Guy
bd5b572279 absf() -> fabsf() instead of fabs()
Change-Id: I5571a635757295aa1514aeaff72e80cc3dd8752c
2009-09-29 13:17:27 -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
6b9dec00af Remove depricated triangleMesh. 2009-09-23 18:07:45 -07:00
Jason Sams
d342fd7526 Clean up some debugging and add 2 math lib routines. 2009-09-18 14:24:24 -07:00
Romain Guy
2d496bfebc Fix point sprites.
Change-Id: Ic9438daaf25f3969a0dd5b634b7cceccbbbfb27b
2009-09-04 17:55:53 -07:00
Jason Sams
ea84a7c517 Remove "predefined" elements from Java layer. Static elements continue to exist but are no longer treated as a special version of element. 2009-09-04 14:42:41 -07:00
Romain Guy
d22fff7185 Cleanup the Galaxy, add a few RS functions for Grass. 2009-08-20 17:08:33 -07:00
Romain Guy
cac80a6e13 Tweak the galaxy 2009-08-18 11:39:17 -07:00
Jason Sams
334ea0c98f Update fountain and add writable flag to script slots. 2009-08-17 13:56:09 -07:00
Jason Sams
43ee06857b Implement reflecting Java objects into the ACC enviroment. 2009-08-12 17:54:11 -07:00
Jason Sams
40a29e8e28 Implement basic allocation readback. Add Get height, width to ScriptC_Lib. 2009-08-10 14:55:26 -07:00
Romain Guy
a9d2d5ed28 Make the laves follow the ripples 2009-08-09 19:12:27 -07:00
Joe Onorato
3370ec9e54 add three rs functions: uptimeMillis, startTimeMillis, elapsedTimeMillis 2009-08-09 17:31:59 -07:00
Jason Sams
1bada8cd6e Begin implementing SimpleMesh and fix some bugs with refcounting and java object destruction tracking. 2009-08-09 17:05:13 -07:00