226 Commits

Author SHA1 Message Date
Jason Sams
f166d9b5a2 Add object validity checking.
Change-Id: I2613e87b09a6e560f0381d4ed620d60a10bc30e4
2010-09-30 18:15:52 -07:00
Stephen Hines
01f0ad7c13 Fix clear() operation for rsScriptC.
- This removes a memory leak where some elements were not getting tracked
  properly (and then triggering an assert when a context is destroyed).
- Convert ScriptCState to use a tracked object reference for mScript.
- Add a missing clear to FontState.
- Clean up synchronization in RSTest so that our graphics context outlives
  any subtest context.

Change-Id: I0d5768c4d2f8810dd1ae2f68b1edd7e150f382fd
2010-09-29 16:58:17 -07:00
Stephen Hines
ab98bb6e8b Fix RS bug with message ID 0.
Clamp RSTest list to nice viewable range.

Change-Id: I0909511e16984ec78150cda17c22e22af1fa0cdb
2010-09-28 10:28:12 -07:00
Stephen Hines
9ba15e376b Merge "Adding support for dynamically updated test status" 2010-09-24 12:10:31 -07:00
Alex Sakhartchouk
04b5dd4b04 Merge "Adding support for all allowed textures. Cleaning up unused code Adding error messages" 2010-09-24 09:42:47 -07:00
Stephen Hines
bbc529244d Adding support for dynamically updated test status
Change-Id: If67de45f7fbf3ecaf4c6e85ed8dded0099e543fd
2010-09-23 19:02:42 -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
ff4d70872a Add RsList implementation to RSTest.
Run subtests in their own thread / RS context.
Created UnitTest framework using message passing for RS.
Add color status reporting to device output.
Fix some typos in RsList.

Change-Id: I251d632b9550a1c117d677f011741a796b561e59
2010-09-23 15:37:57 -07:00
Stephen Hines
72e1687b70 Test use of "f" suffix on float initializers.
Change-Id: I3325576d1ec2d7c1c966afd8ef279745c549125f
2010-09-21 15:32:55 -07:00
Stephen Hines
065149f162 Updated RSTest to test primitive type assignments.
Change-Id: I6c377cfdc647806d9362effc4c1715638dcf5bfb
2010-09-21 11:59:15 -07:00
Stephen Hines
93a958f095 Handle RS reflection name changes.
Change-Id: I0f3f9805a0f0bf44ce9e9944a3eaa5a80dd0cdde
2010-09-17 10:03:00 -07:00
Stephen Hines
a8c6ceedba Minor app updates for RS. force RSTest to portrait.
Change-Id: Ic2356644e00be8d373da97a9072f008e59a0264a
2010-09-15 17:32:06 -07:00
Alex Sakhartchouk
c984dd73c6 Shader changes to allow for more flexible constant binding.
Change-Id: Ic66e6e2a371c6e3d5dce1b00f63acab8c09bd110
2010-09-14 09:50:43 -07:00
Ying Wang
db09da1071 Merge "Reflected class name and bc file name changes." 2010-09-07 22:28:20 -07:00
Alex Sakhartchouk
db6f11bd30 Fixing a3d files to reflect the new element structure.
Change-Id: I44d95c9411706813dde815c5f052f3615e8b483e
2010-09-07 12:10:18 -07:00
Ying Wang
8dff092eca Reflected class name and bc file name changes.
Any non-alnum chars in the rs file name will be removed when we derive the bc file name.
The reflected class names are converted to camel case.

Change-Id: I0184fe8ef2987a19dbdbc93c72163e02b5b0de89
2010-09-07 11:23:15 -07:00
Alex Sakhartchouk
8e95466b5a Adding ability to dirty the allocation and notify shaders using it.
Change-Id: Id5ac8dbba5185cb1f43bedcf4098fcef9f477c51
2010-09-02 10:45:39 -07:00
Alex Sakhartchouk
8442e0bffe Fixing uniform binding for fragment shader.
Updating the glsl fragment shader to color the lights.

Change-Id: I6f850d1aa22059a2974e379f652f7e99d6a799fb
2010-08-31 12:02:01 -07:00
Alex Sakhartchouk
a41174ecb0 Fixing renderscript uniform binding bugs.
Working on custom shaders.

Change-Id: I0d51e879e1c2b46ef5ab696b35162898f4196fc8
2010-08-27 16:10:55 -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
Alex Sakhartchouk
d36f248eaf More work on the renderscript sample
Change-Id: Ib1812bbaa38180ca63d6d53c9cc3aeeee4134725
2010-08-24 14:00:58 -07:00
Alex Sakhartchouk
32e09b5891 Renderscript samples.
Resolving name conflict in model viewer.
Adding fov projection matrix function.
Adding helper methods for blending.

Change-Id: Ibd3f1510436811398787c285845d050158bd6de8
2010-08-23 10:24:10 -07:00
Alex Sakhartchouk
526e7a3c85 Should fix the build.
Change-Id: Ib4f065341c6a90db70cca1adae2978fbff453b74
2010-08-19 10:53:41 -07:00
Alex Sakhartchouk
7723d8c6a0 Hopefully this fixes the build.
Change-Id: I2002ba7e66039d39f8c6754fe7b7e0ca91e7ec13
2010-08-19 10:47:46 -07:00
Alex Sakhartchouk
27f50523a4 Renderscript samples. Merged two model related projects. Cleanup.
Change-Id: I6fdc70420eee7dfecf0b051fd687e5797c6580ce
2010-08-18 15:46:43 -07:00
Jason Sams
43c31421b4 Remove extra float<>int conversions in ImageProcessing.
Remove or shrink test bitmaps for Fountain and ModelViewer.

Change-Id: Ieeb530375aebb6b953aa564788fc5b5ef21a362e
2010-08-16 12:56:08 -07:00
Alex Sakhartchouk
04ba60895a Merge "Renderscript scenegraph prototype." 2010-08-13 10:45:48 -07:00
Alex Sakhartchouk
094a068bc4 Renderscript scenegraph prototype.
Change-Id: Ic4daaf6eca8850caf46bd766e148cf12eb6c6ca1
2010-08-13 10:44:14 -07:00
Jason Sams
4e806c596f Merge "Start adding RS tests." 2010-08-12 17:03:47 -07:00
Jason Sams
2a114bdc64 Start adding RS tests.
Change-Id: I025357407eca3e515823493ff63e4c78249e8126
2010-08-12 17:00:09 -07:00
Jason Sams
2a115d8422 Merge "Thread launch strategies." 2010-08-12 16:59:18 -07:00
Jason Sams
2cbd298f39 Thread launch strategies.
Change-Id: I506df786e815205a8e51906c2b517302c1ef2471
2010-08-12 12:49:31 -07:00
Shih-wei Liao
009e51e654 Merge "Fix anonymous struct." 2010-08-12 06:33:02 -07:00
Shih-wei Liao
66bda36563 Fix anonymous struct.
Change-Id: Icdee2f05738a8712a309720d8d27dc2efc0dd749
2010-08-12 04:16:15 -07:00
Jason Sams
05716aa0a1 Update image processing to cleaup code by not inlining
functions that should be handled by the runtime.

Change-Id: I54c590913285bceb02a9076dbe6355d6f6bc6661
2010-08-09 12:09:36 -07:00
Alex Sakhartchouk
55e8198356 Fixing fonts to use constant color instead of variable.
Change-Id: Ia590dfed482f82b7bc748c25b7b1592efea5b68c
2010-08-05 11:24:14 -07:00
Jason Sams
442a647424 Support constant and varying colors in ProgramFragment.
Change-Id: I16ce84ff427016f3a1923594efc718eca32dd7f2
2010-08-05 10:00:21 -07:00
Jason Sams
f0690c4f29 Cleanup of signed/unsigned
Make all functions overloadable.

Change-Id: I443c83afcf9a7acfae394585201f081681f309db

Update examples.

Change-Id: I100d6fa8dd1af376bcee0b2c42c5aabe9c03bb6e

force rebuild of all .rs files to pick up core header changes.

Change-Id: I6231a8a024388481ca231507e83b108ebdbc3500
2010-07-29 19:10:25 -07:00
Jason Sams
17966517a1 Cleanup sendToClient and add rsGetDt().
Remove legacy implemtation of matrix calls which were moved to llvm bc.

Change-Id: I527740590067db3bcb2147233ef41fb057f1d2a8
2010-07-28 11:17:53 -07:00
Jason Sams
f46f25a4bd Minor ImageProcessing script optimization to make it a better FP benchmark.
Change-Id: I24b11d98c9ac32d91153d3572da511b34e79f7f0
2010-07-22 14:44:04 -07:00
Shih-wei Liao
1cc4523c6a rs_types.rsh and rs_math.rsh are default include files. Remove their #include.
Change-Id: Id69efbd98fd563a82cffdcaba96afa4cd8671bb2
2010-07-21 12:28:47 -07:00
Jason Sams
3b7fd8abe7 Attempt to fix build '<>' works on mac but does not appear to work on linux yet.
Change-Id: Ic0bfaf3cf052e9be43320aa2cdd89ca4d0f48fc6
2010-07-20 15:43:22 -07:00
Jason Sams
c7f4e41ecd Update imageprocessing to remove generated files.
Fix thread launch race condition.

Change-Id: I24d7f87ac87db6f9e3418d6a429471a71d2c9e9d
2010-07-20 15:09:00 -07:00
Shih-wei Liao
b1cd67bb48 Merge "Fix Android build" 2010-07-20 01:26:34 -07:00
Shih-wei Liao
57e7a95b16 Fix Android build
Change-Id: I531dec556e6774518d19707f91c99ecaaf344c0f
2010-07-20 01:25:10 -07:00
Shih-wei Liao
9d07ed1f5d Merge "Change the include path." 2010-07-20 01:04:58 -07:00
Shih-wei Liao
7152c05724 Change the include path.
Change-Id: I884f95e40ab2d7080fd1eec0ecc9b86794b7c042
2010-07-20 01:03:09 -07:00
Shih-wei Liao
c67dc1afba Merge "Port ModelViewer to use the new build system. Fix the simulator build on Fountain." 2010-07-20 00:37:42 -07:00
Shih-wei Liao
3485976e84 Port ModelViewer to use the new build system.
Fix the simulator build on Fountain.

Change-Id: I89b05c31595f0a8c3001171957eeeb2fec253c74
2010-07-20 00:36:47 -07:00
Ying Wang
6ddaacef9b Switch back to use the default search of include path
since slang has been fixed to add current dir as one of the default search path.

Change-Id: Id3e80955ce445f155fc518927974be7986daff1f
2010-07-19 19:05:31 -07:00