246 Commits

Author SHA1 Message Date
Jason Sams
eb4b031804 Make default vertex program correctly track surface size. 2009-11-12 16:09:45 -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
Romain Guy
28ffcc4bb2 am e614f938: am dac92e6f: am 3e584fc9: Merge change I5975651f into eclair
Merge commit 'e614f9382799826ca11960eb8ffacb677e2a2b1b'

* commit 'e614f9382799826ca11960eb8ffacb677e2a2b1b':
  Don't feed the timezone to RenderScript time functions, let the library figure it out.
2009-11-11 17:39:42 -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
Jason Sams
237d247cc4 am 4909b554: am a8f2c2b4: am 902051df: Merge change I0e27b5ca into eclair
Merge commit '4909b554782c1970bce11fb421b0a06664a25718'

* commit '4909b554782c1970bce11fb421b0a06664a25718':
  Fix texture upload bug for narrow texture of less than 32bpp.
2009-11-05 16:00:56 -08:00
Jason Sams
0e27b5cadb Fix texture upload bug for narrow texture of less than 32bpp. 2009-11-05 12:44:58 -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
74807763e0 am 03fa848a: am ebca5eec: am 83665194: Merge change I9d5e03db into eclair
Merge commit '03fa848afd16ee678e2d04ec824794893f199804'

* commit '03fa848afd16ee678e2d04ec824794893f199804':
  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 15:26:09 -08:00
Jason Sams
efd9b6fb2e Support applications changing the surface attached to the RS. 2009-11-03 14:15:28 -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
46f385459f am 15ec511b: am 38f95586: am 03e778b9: Merge change Ic4918c30 into eclair
Merge commit '15ec511b5c5cdb901bf1bd0e26ff0514635fc681'

* commit '15ec511b5c5cdb901bf1bd0e26ff0514635fc681':
  Fix a build break.  Too many branches to keep track of.
2009-11-02 15:23:02 -08:00
Jason Sams
43b5a56644 am 766df995: am d31b0e44: am 3bbb5e9a: Merge change Ib7a6c434 into eclair
Merge commit '766df995e30caa054cc25068e55f160c765590eb'

* commit '766df995e30caa054cc25068e55f160c765590eb':
  Fix some leaks.  This fixes the major malloc memory leak in allApps.  Still tracking some much more minor issues.
2009-11-02 15:22:34 -08:00
Jason Sams
c4918c3014 Fix a build break. Too many branches to keep track of. 2009-11-02 15:05:04 -08:00
Jason Sams
b7a6c4340a Fix some leaks. This fixes the major malloc memory leak in allApps. Still tracking some much more minor issues. 2009-11-02 14:25:10 -08:00
Marco Nelissen
a6e385cf20 am 923f2cf0: am a89a059e: am 04104665: Merge change I911458a0 into eclair
Merge commit '923f2cf0dc15ac2bafa8013b31a722b85a64176b'

* commit '923f2cf0dc15ac2bafa8013b31a722b85a64176b':
  Fix x offset for boxed textures
2009-10-29 14:47:10 -07: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
Marco Nelissen
911458a081 Fix x offset for boxed textures 2009-10-28 15:10:56 -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
741a6100a0 Fix bug where dirty messages for allocations attached to programVertex objects could be lost. 2009-10-15 18:45:45 -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
c7412b3b08 Minor bug fixes and add glError check. 2009-10-15 16:06:42 -07:00
Jason Sams
6a17e163a0 Add egl init start message to help debug driver init hangs. 2009-10-15 16:06:42 -07: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
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
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
7f047786d9 Update the SimpleMesh API to support new attribute types. Also spilt add/set commands to avoid permutation explosion. 2009-10-02 18:18:35 -07:00
Joe Onorato
9e384dddb8 Add a test pattern as rollo's icon 2009-10-01 16:48:44 -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
3c0dfbab80 Improve logging code to dump more detaild rs object info. Fix bug with predefined elements not being recreated for contexts after one was destroyed. Add stricter type enforcement. 2009-09-27 17:50:38 -07:00
Jason Sams
f075b4e713 Fix fountain crash. 2009-09-25 20:24:54 -07:00
Jason Sams
a57e982785 Fix remaining object leaks. Change FountainView to tear down the rsContext and recreate on rotation to test teardown. 2009-09-25 16:50:36 -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
65e7aa56f5 Implement pause/resume for the RS thread. 2009-09-24 17:38:20 -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
b6f2b131c4 Removed last bits of predefined element types from native code. Predefined types are now constructed at the java layer from standard building blocks. 2009-09-24 12:33:45 -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
59038ca98b Update viewport when height or width change. 2009-09-22 12:26:53 -07:00
Jason Sams
d342fd7526 Clean up some debugging and add 2 math lib routines. 2009-09-18 14:24:24 -07:00
Jason Sams
be2e84193f Implement renderscript Invokables. 2009-09-16 15:04:38 -07:00
Jason Sams
988f6ebb44 Minor perf tweak for fountain. 2009-09-14 15:00:05 -07:00
Romain Guy
fa736d79b7 Remove the FallRS demo, now promoted as a wallpaper.
Change-Id: I0e40f2aa4b51f9e9cdbe14d178491b3667662023
2009-09-09 13:10:56 -07:00