102 Commits

Author SHA1 Message Date
Jason Sams
991040c826 Cleanup logs.
Change-Id: I206d45863752adbc71fc91cd14e7cd3a555c8c53
2011-01-18 12:42:32 -08:00
Jason Sams
fb9f82ca4f Implement more of copy2DRange*
Change-Id: Id6be481c4abc968df27e5bba1ed044262ec0f293
2011-01-12 14:53:25 -08:00
Jason Sams
f7086090cf Cleanup bitmap uploads
Implement standalone mipmap generation.

Change-Id: Ie3a9781bbe50e2f58adca6f184d84fea50e40263
2011-01-12 13:28:37 -08:00
Alex Sakhartchouk
b0253ea696 Additional loading methods for fonts and a3d files.
Cleaned up error messages.

Change-Id: Id33b7149671df23c37cc11375d844a7837dac750

Change-Id: I6663ce54f7b9bbaf285935ca658d93ba417f8179
2011-01-07 11:16:08 -08:00
Jason Sams
49a05d7b82 Move adapter2D to a derived class from Allocation.
Change-Id: I7e9d8b0028ba95956476f253da38dbe64564d0da
2010-12-29 14:31:29 -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
Alex Sakhartchouk
e27cdeeecb API reaview cleanup
Change-Id: Ib1aaf81130ffa6b5e6c60096c27c969e8891db3f
2010-12-17 11:41:08 -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
d4b23b5444 More API updates.
Change-Id: I754dc645ac08fa25019eed8fd8b7b3c47f178ff2
2010-12-13 15:32:35 -08:00
Jason Sams
4ef6650bd0 Remove CreateFromBitmapRef and add
CopyTo(bitmap) replacement.

Change-Id: Ib73fb9f4bfe5f468eaf0f8f1bf68a93759eef00d
2010-12-10 16:03:15 -08:00
Jason Sams
5476b450e5 Allocation API update.
Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
2010-12-08 16:14:36 -08:00
Jason Sams
bf6ef8d78f API review cleanup.
Change-Id: Ieae7d450308b5637ed4253fe9baed3634c6ed141
2010-12-06 17:46:20 -08:00
Alex Sakhartchouk
67f2e442a3 Support for cubemaps.
Change-Id: Iaf6087f614451a8e233b3e5bc49c834ab0ad08ee
2010-11-18 15:27:28 -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
6f4cf0b888 Fix ref counting for globals when set from java code.
Change-Id: I415b6ddeaab277e60233e905a6bae357cd5193eb
2010-11-16 17:37:02 -08:00
Jason Sams
1c41517124 Handle user message ID 0
Pass RS runtime errors back to java.
throw exceptions for runtime errors.

Change-Id: Ifcf16cbbf9b98137971dced5076f8a5563eb016c
2010-11-08 17:19:31 -08:00
Alex Sakhartchouk
9d71e21800 Moving attrib creation to Mesh. Adding arrays as shader inputs.
Removing fixed size arrays.

Change-Id: I0213e403a2f1283dd43f21bea770aeb059561903
2010-11-08 15:10:52 -08:00
Jason Sams
c1d6210fb5 More RS exceptions cleanup.
Remove some dead code.

Change-Id: If97e3fdfe6de7bb28f22e1c5ee748c81cea3db93
2010-11-04 14:32:19 -07:00
Alex Sakhartchouk
581cc64028 Adding nvidia extension for limited npot support.
Updating a3d loading to be async.

Change-Id: I4be71d2002b9ad6ab8896d63e625f031e6b7ea6c
2010-10-27 14:10:07 -07:00
Jason Sams
31a7e42f4b Begin adding async allocation creation.
Change-Id: I5d1381699e2b334c1d824f357bd6b310a5f79be8

Implement async bitmap upload and clean up types.

Change-Id: Icbe9894e04c1319351c1cd75b0e0017855198f20
2010-10-26 13:09:17 -07:00
Jason Sams
9c25aee526 Fix object cast.
Change-Id: Idcf1b43392d43b6b46040b59551b73df6d6e42a9
2010-10-14 17:57:30 -07:00
Jason Sams
3b9c52ab8c Async type creation.
Change-Id: I4d98446fabbf7e8a98c97f85b573a58c8a0c58c2
2010-10-14 17:48:46 -07:00
Jason Sams
11c8af9ded Begin hooking up SurfaceConfig.
Change-Id: I328138f29affbed11fcfb5e9ed0872d4ba22d241
2010-10-13 15:31:10 -07:00
Alex Sakhartchouk
26ae3904e8 Update allocation from bitmap.
GL attribute cleanup in type.

Change-Id: I504dcf6744ad13d65e068e784b6608c999ab48c6
2010-10-11 14:04:09 -07:00
Stephen Hines
031ec58cfc Fix support for 64-bit integers.
Change-Id: I4e2146a5fda41f280ee3f6f685a34f3cff28f05e
2010-10-11 12:32:33 -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
Jason Sams
5edc608a07 Implement allocation resizing.
Change-Id: Ie38d42419d595cec730a8721cc1321c5edb6b4d6
2010-10-05 13:32:49 -07:00
Alex Sakhartchouk
f5b3510c70 Adding anisotropic filtering and related samples.
Change-Id: Idb173274417feb5e25bfd64c5e9fa2492a23a17e
2010-09-30 11:36:37 -07:00
Alex Sakhartchouk
b89aaacb2c Adding support for all allowed textures.
Cleaning up unused code
Adding error messages

Change-Id: I3a92476738ff7699d49feeafcd3eee6f70621acb
2010-09-23 16:16:33 -07:00
Stephen Hines
ca54ec302f Add support for Float64 (double) to RenderScript.
Change-Id: Iad1c4adadf657a46aa38a3fad7813927e643e29d
2010-09-20 17:20:30 -07:00
Jason Sams
cfc0436699 Fix partial NP2 support and restrict mipmaps and clamp
modes on HW that does not support proper NP2
bug 2965170

Change-Id: If9a3ac45264861fc75b9616e98957e12a5464411
2010-09-14 14:59:37 -07:00
Jason Sams
70d4e50242 Add arrays to elements.
Change-Id: I624b03bfc1fd26136afd9305a96026b91b1fad3c
2010-09-07 12:06:05 -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
e447a78635 Remove functions for reflecting dalvik classes to rs types.
Change-Id: I41bc7fd704772d177f8035c04256d0ca63e4398b
Change-Id: I4df3673a1db1e79c309ab4eb41d2145802ed322c
2010-09-01 14:22:36 -07:00
Jason Sams
49bdaf0293 SubElementData data upload functions.
Change-Id: I5f8c738b5457ae7f6085fc4cd331cf3d13ad75cf
2010-08-31 15:31:11 -07:00
Jason Sams
1d45c47975 Add matrix component types.
Fix potental overflow in script -> java messages.

Change-Id: Ie6fd9dc376be4043fc938a1517106936937689c8
2010-08-25 14:41:20 -07:00
Jim Miller
ee956053d6 Make sure we have a native Surface in nContextSetSurface.
I was seeing a problem running RenderScript in the system process
because mNativeSurface was null.  This works around the problem
by forcing the native surface to be created when we set the surface.

Change-Id: I3abf6cef1b049864e4e063669b6df547de008c93
2010-08-19 18:56:00 -07:00
Jason Sams
d78be37d81 Remove OOB object destruction.
Change-Id: Icaa06aca4a701ec663c124d3141d9dbb633d7dc1
2010-08-17 19:28:29 -07:00
Jason Sams
2e1872fe07 Make java entry points for native fifo synchronized.
Change-Id: I1baf2beb920016f0202042982075cbce1e67df42
2010-08-17 16:25:41 -07:00
Alex Sakhartchouk
fb10c16a05 Added ability to set font color.
Propagating the name of meshes and allocations from native a3d to java

Change-Id: If781f55340b5369459610e5e92ea69e240dcd24e
2010-08-04 14:45:48 -07:00
Alex Sakhartchouk
dfac814c18 Populate java objects with native data from a3d file.
Remove legacy constructor from programraster
Make a3d object creation synchronous

Change-Id: Ic7d7547cf6eee6f9a7c6e3ee12cd104e80056a7b
2010-07-15 14:02:54 -07:00
Alex Sakhartchouk
80a4c2cd34 Work on synchronizing a3d created files and java layer.
Adding culling to ProgramRaster

Change-Id: I58ccc82d37edc9539289d5eba44ea0e720874af5
2010-07-12 15:50:32 -07:00
Jason Sams
53a93d5e91 Remove points from fixed function.
Add basic GL performance test.

Change-Id: I421a41b6683b2c5f70045cdd0f610a6939105fee
2010-07-09 15:34:32 -07:00
Alex Sakhartchouk
8287a9bc5e Cleanup pass on the mesh api change.
Removed all the simple mesh related calls and temporary objects.

Change-Id: Ic64a72a894e0314f216f10e1cfc0d45b17e2e182
2010-07-02 12:14:26 -07:00
Alex Sakhartchouk
164aaedf7f Start of mesh API cleanup.
Switched all native code to go through Mesh class.
Removed SimpleMesh
Added java Mesh class
Will need to port all existing code to use java Mesh, then remove java SimpleMesh.

Change-Id: Idb9c03d0b06b4ef87db28dffcffa1881d39120e5
2010-07-01 16:14:12 -07:00
Alex Sakhartchouk
9b949fce39 Adding freetype font rendering to renderscript.
Change-Id: I3a10ffe27092a41df156341c9cb3f7aa19c49f19
2010-06-24 17:15:34 -07:00
Jason Sams
96ed4cfa62 Remove InvokeData and add ContextFinish to generate a sync point.
Change-Id: I27da8bf5fba2c8a428964cb6a5e66dd7a94958d8
2010-06-15 12:15:57 -07:00
Alex Sakhartchouk
aae74ad614 Creating the jni and java layer to integrate a3d
Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37
2010-06-04 10:06:50 -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
1de0b87168 Remove more pieces of setRoot. Add pointer to allocation lookup for scripts.
Change-Id: I2c3075d2056f02bb834bfad403dc72da991f3156
2010-05-17 14:55:34 -07:00