Commit Graph

152 Commits

Author SHA1 Message Date
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
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
7136220b54 Fix egl cleanup code on context teardown. 2009-10-27 14:44:31 -07:00
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
741a6100a0 Fix bug where dirty messages for allocations attached to programVertex objects could be lost. 2009-10-15 18:45:45 -07:00
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
c7412b3b08 Minor bug fixes and add glError check. 2009-10-15 16:06:42 -07:00
6a17e163a0 Add egl init start message to help debug driver init hangs. 2009-10-15 16:06:42 -07:00
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
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
5235cf3f41 Fix but processing raster state pragma.
rename stateFragmentStore to stateStore
2009-09-28 18:12:56 -07:00
61f08d6fa7 Improved object lifecycle tracking and fix leaks. 2009-09-25 16:37:33 -07:00
66b2771d74 Reduce debugging spew and add props to selectivly re-enable it.
change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe
2009-09-25 15:25:00 -07:00
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
65e7aa56f5 Implement pause/resume for the RS thread. 2009-09-24 17:38:20 -07:00
d3f2eaf60a Minor cleanup of profile and compile logging. 2009-09-24 15:42:52 -07:00
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
9ac2c66f01 Make the renderscript timing logging available by setting debug.rs.profile=1 2009-09-23 17:26:07 -07:00
ebfb436a49 Add raster object to control point and line params. Add flag to force SW rendering. 2009-09-23 13:57:02 -07:00
59038ca98b Update viewport when height or width change. 2009-09-22 12:26:53 -07:00
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
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
07ae406237 Implement async data/subData. Implement TriangleMeshBuilder in SimpleMesh which replaces TriangleMesh. Update Film to use new builder. 2009-08-27 20:23:34 -07:00
67c6844ea0 Remove bogus comments and logging. 2009-08-25 17:09:59 -07:00
f5b4596a38 Implement java interface for RS shutdown and fix shutdown deadlock with the command fifo. 2009-08-25 14:49:07 -07:00
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
f4d160653f Improved RS timing code to monitor where we spend CPU time. 2009-08-19 12:17:14 -07:00
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
7ce033d797 Cleanup of object destruction. No need to have a per-class destruction function. This was a legacy of the distant past when the classes did not have a common base. 2009-08-18 14:20:07 -07:00
bc948dedce Remove global IO context and integrate it into the RS context. 2009-08-17 18:35:48 -07:00
43ee06857b Implement reflecting Java objects into the ACC enviroment. 2009-08-12 17:54:11 -07:00
d7b3774da6 Let java put #defines into renderscript 2009-08-09 22:58:20 -07:00
9bee51c42e Remove useless slot from ProgramVertex. Optimize GL state setup. 2009-08-05 13:57:03 -07:00
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
7aa4f3a163 More test app work 2009-07-14 13:59:23 -07:00
f31868e59f merge master in master_gl 2009-06-24 18:31:21 -07:00
f29ca50d80 Cleanup logging and fix a startup race condition that manifested on Firestone. 2009-06-23 12:22:47 -07:00
3142f4f40b update renderscript to master_gl APIs 2009-06-22 18:01:09 -07:00
4b962e57a9 Cleanup includes so Log.h can use the tag. rsUtils.h is the file that should be included everywhere and contain rs global defines. 2009-06-22 17:15:15 -07:00
462d11b880 checkpoint filmstrip, implemented TLS. 2009-06-19 16:03:18 -07:00
5f7fc27dce Replace spins with proper pthread conditions. 2009-06-18 16:58:42 -07:00
9c54bdbf45 Implement default programs and implement defaults and parents for imports. 2009-06-17 16:52:59 -07:00
b37c0a5db6 Switch fountain to use ProgramVertex rather than hard coded camers in scripts. Remove camera code from scripts. 2009-06-16 17:49:58 -07:00
d5680f9ba9 Fix bug with bad conversion of java strings to C strings for object names. Update test app to test object defines. 2009-06-10 18:39:40 -07:00
3eaa338e11 Add named objects and implement support for ProgramFragmentStore and ProgramFragment to be used by name in scripts. 2009-06-10 15:04:38 -07:00
da423d8479 checkpoint pragma support. Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC. 2009-06-09 12:15:30 -07:00
928f5cf287 Move placement of script enviroment data to base. 2009-06-08 18:50:13 -07:00
3a833d8e0f Fix build issue and ref count bug with scripts. 2009-06-08 15:20:31 -07:00
a09f11d6c6 Add support for scripts to return an animation flag. This allows them to indicate they are generating changing content and the rs thread to sleep if the content is static. 2009-06-04 17:58:03 -07:00
8ad0010d6e Set the RS thread priority. 2009-06-04 14:35:01 -07:00