830 Commits

Author SHA1 Message Date
Jason Sams
ec30933c1d WAR driver bug where surfaces of size 0 fail.
Change-Id: I72b356c4cfb71f2342479ca21238b763d02e729d
2011-01-12 15:26:25 -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
27d116085e Merge "Adding ability to load cubemaps from individual faces." into honeycomb 2011-01-12 11:53:42 -08:00
Shih-wei Liao
16095fc4c8 convert2uchar3.
Change-Id: I5d5406f14b0c22a7b085495b3bcc51d5a288dcf8
2011-01-12 04:44:09 -08:00
Stephen Hines
682c4a860b Clean up RS math headers.
Fix types for ilogb and remquo.

Change-Id: I54f8634b1fe8b6cfb136d3bdf6aab5a5961e6827
2011-01-11 17:00:29 -08:00
Alex Sakhartchouk
dcc231955d Adding ability to load cubemaps from individual faces.
Change-Id: Ic8b6693f625c181e031d4393ba8fac40049da88b
2011-01-11 14:47:44 -08:00
Alex Sakhartchouk
fe852e216f Updating cubemap loading code.
Change-Id: I93bb00e5fd1ccc622d17eba70a510664c2093723
2011-01-10 15:57:57 -08:00
Stephen Hines
1ac9da6717 Split time functions into rs_time.rsh header.
Change-Id: I598b0031d15749c91d11fbd37b075d0564a94dbf
2011-01-09 17:04:18 -08:00
Jason Sams
84035ff6f5 Fix cleanup race condition where objects might may not
be cleaned up correctly.

Change-Id: Ia48e06c3d050b6b39b39f8fdc9f0eb89b92fe1bf
2011-01-09 16:09:51 -08:00
Shih-wei Liao
8845fbbc8e For caching, didn't do CompileBC. Rename bccCompileBC as bccPrepareExecutable.
Change-Id: Ie63cd87bf377e2daf0c81d81c0bf86a6195edf46
2011-01-07 19:24:41 -08:00
Shih-wei Liao
9d4024d540 1. LOG 4 fatal error paths (TODO: These 4 places should signal Java exceptions.)
2. Prepare on-device linking.
3. Clean up code.

Change-Id: Iac4148431dbe1c3c4044f7394eb51a1332f513f9
2011-01-07 18:28:02 -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
49945c0ff6 fix bug 3313505
Shader cache cleanup could occur in wrong thread
during RS teardown.

Change-Id: Iffed41de046147db30885e6815826e3b640020c1
2011-01-05 03:37:48 -08:00
Shih-wei Liao
05d17b0222 Rename bcc::BCCscript -> bcc::Script. Ideally, should do:
include bcc.h instead of forward declaration.

Change-Id: I649f62d240ed4e13eb95a8988a9ee202b19e7436
2011-01-03 22:55:13 +08:00
Jason Sams
49a05d7b82 Move adapter2D to a derived class from Allocation.
Change-Id: I7e9d8b0028ba95956476f253da38dbe64564d0da
2010-12-29 14:31:29 -08:00
Jason Sams
5c68a712da Fix teardown bug found in books.
Change-Id: I9ac449b644108148b331e0c552f289bf80a07f7e
2010-12-24 14:42:54 -08:00
Shih-wei Liao
c5300f14ad Clean-up.
Change-Id: I43045da43a5e48e1bf759cd18c1b90d45f243450
2010-12-23 23:07:02 +08:00
Alex Sakhartchouk
b4d7bb6872 API cleanup for renderscript. This will be a multiproject commit.
Change-Id: Ida62d3a155285a20725be9daa62217faef1c3734
2010-12-21 14:57:04 -08:00
Jason Sams
e688213f6f Merge "Clean up Allocation buffer object api." 2010-12-20 14:28:52 -08:00
Jason Sams
d19524047f Clean up Allocation buffer object api.
Change-Id: Id3e2391a93a99f4c414a805ee33cfd113242a7e6
2010-12-20 12:55:28 -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
667fb848aa Whenever LoadBinary fails, recompile. Fixing the multi-instance bug.
Change-Id: Ib1565efe1353ed788a3ed3c81c6067e92d8ef0e5
2010-12-16 04:58:35 -08:00
Alex Sakhartchouk
0857196107 Cleanup and refactoring of an earlier cl.
Change-Id: I5e356ed88375a1620846e0c500659e3b7ead5030
2010-12-15 10:11:31 -08:00
Jason Sams
6d8eb266dd Fix mipmap bug introduced with Allocation cleanup.
Add syncAll to rsg headers.

Change-Id: I02c953f3fddab3c6f4e98570cdad45a59711bbde
2010-12-15 01:41:00 -08:00
Jason Sams
fc29088e58 Merge "Add support for non-malloc backed textures." 2010-12-14 14:32:36 -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
f2e69a911a Merge "More API updates." 2010-12-13 23:53:35 -08:00
Jason Sams
5e0035af36 Add support for non-malloc backed textures.
Change-Id: Iee8e987591caa17b4c8186f8173089925140a568
2010-12-13 17:11:21 -08:00
Jason Sams
d4b23b5444 More API updates.
Change-Id: I754dc645ac08fa25019eed8fd8b7b3c47f178ff2
2010-12-13 15:32:35 -08:00
Alex Sakhartchouk
6b5222dd53 Perf test
Change-Id: I5cfc1b6dd438b13091993d4669e10fb2e49aaa06
2010-12-13 14:48:21 -08:00
Jason Sams
3ccc75fa51 Merge "Add multitouch support to physics test. Fix context state overwrite calling invoke." 2010-12-11 18:52:37 -08:00
Jason Sams
4859f5233c Add multitouch support to physics test.
Fix context state overwrite calling invoke.

Change-Id: I7a71237bcf36abb31f98eb6d872501fdfb007d81
2010-12-11 17:42:30 -08:00
Jason Sams
54ca458787 Merge "Remove CreateFromBitmapRef and add CopyTo(bitmap) replacement." 2010-12-10 16:06:19 -08:00
Jason Sams
4ef6650bd0 Remove CreateFromBitmapRef and add
CopyTo(bitmap) replacement.

Change-Id: Ib73fb9f4bfe5f468eaf0f8f1bf68a93759eef00d
2010-12-10 16:03:15 -08:00
Stephen Hines
cfcea7a1d0 Remove vector array test from RSTest.
This test will soon yield an appropriate compile-time error.

Change-Id: I8f9bef7c4c6f954753268a2c1816337f347eae06
2010-12-10 15:27:35 -08:00
Jason Sams
3eb3106137 Merge "Fix a severe cleanup bug where teardown of the GL driver could occur on the wrong thread." 2010-12-09 12:21:19 -08:00
Jason Sams
546f01b6d5 Fix a severe cleanup bug where teardown of the GL
driver could occur on the wrong thread.

Change-Id: Icd56182ccbd1371124a247695bf3ebd3085df450
2010-12-09 12:19:46 -08:00
Jason Sams
5c1619fff4 Fix build
Change-Id: I189d3b8afd351ab5cf604105579212593a98d5a4
2010-12-09 00:58:47 -08:00
Jason Sams
5476b450e5 Allocation API update.
Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
2010-12-08 16:14:36 -08:00
Shih-wei Liao
b7282bd2e7 Make ScriptC's mEnvironment.mIsThreadable survive the bcc caching and
then cache-reloading.

Change-Id: I0f5d54160dd9ee567fae53c69b246f99096993da
2010-12-07 13:47:14 -08:00
Jason Sams
bf6ef8d78f API review cleanup.
Change-Id: Ieae7d450308b5637ed4253fe9baed3634c6ed141
2010-12-06 17:46:20 -08:00
Stephen Hines
d4aa7d22f8 Stop using anonymous structs in RS.
Change-Id: I90344683939f2934f841031fd5339dbe91cc9e05
2010-12-06 11:04:40 -08:00
Bryan Mawhinney
8ea061bcdd Prevent message overrun in LocklessCommandFifo.
The previous logic in makeSpace and makeSpaceNonBlocking
was incorrect (probably a typo).  We shouldn't loop if
looping will overwrite unread messages, or if we would
make the buffer appear empty (mPut == mGet).

Change-Id: Iabc82ca94a585a7041069db97cbed7709f2d388f
2010-12-05 17:21:07 +00:00
Iain Merrick
ac19268a36 Fix 'BCCscript' build break.
frameworks/compile/libbcc/include/bcc/bcc.h was updated
in change I3f3d31fc. What used to be "struct BCCscript"
is now "class bcc::BCCscript" for C++ code.

Looks like the framework/base header rsScriptC.h is just
trying to forward-declare the same type, so we just need
to make the same change there.

Change-Id: I6f6f9dd7608af01d519c2e26fd9b5e6649f71902
2010-11-29 15:36:26 +00:00
Jason Sams
c8abdeda28 Fix physics bug causing balls to stack.
Change-Id: I681905cf7499bb92db47ba2a4cca10d0834cf425
2010-11-24 12:12:26 -08:00
Jason Sams
add9d96332 More error checks
Change-Id: Id2b9ab7a76bbdf2ed745f5e36e552dc9b101982f
2010-11-22 16:20:16 -08:00
Stephen Hines
732779a0c0 Remove unnecessary export_func pragma.
Change-Id: Ibe5c5f186cfc12a31f3fb4f0f7472e3b60836394
2010-11-18 17:04:50 -08:00
Alex Sakhartchouk
2f08ce0332 Fixing the state restore bug.
Change-Id: I30446a2d552b98fc69878bc7b4fc1a0fd358fc99
2010-11-18 16:36:47 -08:00