62 Commits

Author SHA1 Message Date
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
2978bfc6ad beging np2 extension check work. 2010-02-22 15:37:51 -08:00
Mathias Agopian
5cbb940cf6 Revert "Revert "RenderScript should not depend on libsurfaceflinger_client.so""
This reverts commit a0659aa36c987e28e29778bd97e75fe52152c60e.
2010-02-12 12:00:38 -08:00
Jack Palevich
a0659aa36c Revert "RenderScript should not depend on libsurfaceflinger_client.so"
This reverts commit 88b55fb090ace1a835f890758866f42f03795c12.
2010-02-12 18:21:26 +08:00
Mathias Agopian
88b55fb090 RenderScript should not depend on libsurfaceflinger_client.so 2010-02-11 14:57:11 -08:00
Mathias Agopian
000479f9e3 split libsurfaceflinger_client and libcamera_client out of libui 2010-02-11 13:16:22 -08:00
Jason Sams
704ff64b09 Preview seperating RenderScript into RenderScript and RenderScriptGL 2010-02-09 16:05:07 -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
5dad8b4d1f Place shader logging behind prop to declutter logs. 2009-12-15 19:10:11 -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
3b7d39bb51 Implement RS tracked defered texture and buffer object uploads. 2009-12-14 12:59:49 -08:00
Jason Sams
aad442ec27 am b62954b6: am 8f31c230: am 57ce0888: Merge change Id22c0137 into eclair
Merge commit 'b62954b66542e3e2654d97a81123c51805bceca7'

* commit 'b62954b66542e3e2654d97a81123c51805bceca7':
  Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
2009-12-10 17:15:13 -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
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
Jason Sams
0a2e7a3963 am e4df64bd: am 66358e24: am 9dab667e: Force a crash under conditions where white square bug in all apps is likely to occur.
Merge commit 'e4df64bdaaf86fb7d06715de122a97d723d7fea2'

* commit 'e4df64bdaaf86fb7d06715de122a97d723d7fea2':
  Force a crash under conditions where white square bug in all apps is likely to occur.
2009-11-24 12:57:57 -08:00
Jason Sams
9dab667e03 Force a crash under conditions where white square bug in all apps is likely to occur. 2009-11-24 12:26:35 -08:00
Jason Sams
41301259fb am 234e509a: am 22186a2c: am ec8178eb: Merge change I9c1bad53 into eclair
Merge commit '234e509a67eb32606f3051d21eb3ea25b272d80d'

* commit '234e509a67eb32606f3051d21eb3ea25b272d80d':
  Add setPriority to allow wallpapers to run at lower cpu priority than default.
2009-11-17 07:31:07 -08:00
Jason Sams
7d787b4722 Add setPriority to allow wallpapers to run at lower cpu priority than default. 2009-11-15 12:14:26 -08:00
Jason Sams
bc4d75bc64 am adf38939: am da8bb292: am 59175ac2: Merge change I81b1421a into eclair
Merge commit 'adf38939836ee1d1f5967fc45d02e07117f44009'

* commit 'adf38939836ee1d1f5967fc45d02e07117f44009':
  Defer EGL init until the surface changed call comes in.  Pass w,h along with surface for verification of driver state.
2009-11-13 10:50:49 -08:00
Jason Sams
3bc47d4381 Defer EGL init until the surface changed call comes in. Pass w,h along with surface for verification of driver state. 2009-11-12 15:10:47 -08:00
Jason Sams
bd98f10764 am eb7e27e8: am a1c3681f: am decc139b: Merge change I7a824efc into eclair
Merge commit 'eb7e27e8007d1b27d3e01c376b6747dc885db517'

* commit 'eb7e27e8007d1b27d3e01c376b6747dc885db517':
  Support applications changing the surface attached to the RS.
2009-11-03 16:27:39 -08:00
Jason Sams
efd9b6fb2e Support applications changing the surface attached to the RS. 2009-11-03 14:15:28 -08:00
Jason Sams
060746b383 am 3c249da7: am 21e799ed: am e9e50b57: Merge change I7136220b into eclair
Merge commit '3c249da7eaceaffae87657aeb7179ffc4a5e1570'

* commit '3c249da7eaceaffae87657aeb7179ffc4a5e1570':
  Fix egl cleanup code on context teardown.
2009-10-29 02:03:37 -07:00
Jason Sams
7136220b54 Fix egl cleanup code on context teardown. 2009-10-27 14:44:31 -07:00
Jason Sams
83f1c63c56 Fix dirty state tracking of allocation attached to ProgramVertex objects when being updated while not attached. 2009-10-26 15:20:43 -07:00
Jason Sams
41c19db90e Remove hack in RS that called exit to WAR now fixed driver bugs. Make gloabal init safe by locking around the critical code. 2009-10-15 16:47:31 -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
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
65e7aa56f5 Implement pause/resume for the RS thread. 2009-09-24 17:38:20 -07:00
Jason Sams
6b9dec00af Remove depricated triangleMesh. 2009-09-23 18:07:45 -07:00
Joe Onorato
9ac2c66f01 Make the renderscript timing logging available by setting debug.rs.profile=1 2009-09-23 17:26:07 -07:00
Jason Sams
ebfb436a49 Add raster object to control point and line params. Add flag to force SW rendering. 2009-09-23 13:57:02 -07:00
Jason Sams
2525a81522 Improve structure support using symbol lookup of named structures in scripts to allow them to appear as just pointers to structs. 2009-09-03 15:43:13 -07:00
Jason Sams
b13ada5071 Add support for selecting the color bit depth and if the application used a depth buffer. 2009-08-25 11:44:30 -07:00
Jason Sams
f4d160653f Improved RS timing code to monitor where we spend CPU time. 2009-08-19 12:17:14 -07:00
Jason Sams
730ee65d4d Implement OOB destroy method that can be called from the java finalizer removing the need to explicitly destroy objects. 2009-08-18 17:07:09 -07:00
Jason Sams
bc948dedce Remove global IO context and integrate it into the RS context. 2009-08-17 18:35:48 -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
Joe Onorato
d7b3774da6 Let java put #defines into renderscript 2009-08-09 22:58:20 -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
Jason Sams
9bee51c42e Remove useless slot from ProgramVertex. Optimize GL state setup. 2009-08-05 13:57:03 -07:00
Jason Sams
b0ec1b46d6 Add "boxed" bitmap uploads which simply place a non-pow2 bitmap into the smallest larger pow texture. The added space is filled black. 2009-07-28 12:02:16 -07:00
Jason Sams
ee41112e15 Enable light sources and update film test app. 2009-07-21 12:20:54 -07:00
Jason Sams
399bfce299 Fix master build errors post merge with master_gl branch. 2009-07-14 13:59:23 -07:00
Mathias Agopian
dfe983bd79 Merge commit 'goog/master' into merge_master 2009-07-01 18:33:18 -07:00
Jason Sams
7c878f3a83 Begin adding mesh 2009-06-30 14:13:25 -07:00