Commit Graph

64 Commits

Author SHA1 Message Date
Stephen Hines
0b1711582f Merge "RS char bug repro case" into jb-mr1-dev 2012-09-26 19:04:48 -07:00
Stephen Hines
c49c71a5c6 Merge "Restore RSTest functionality (char bug is fixed)." into jb-mr1-dev 2012-09-26 19:03:21 -07:00
Stephen Hines
8d60b1ea29 Restore RSTest functionality (char bug is fixed).
Bug: 6865598
Change-Id: If65ff3c29b28c1008fbf1ad91a92b54210d60547
2012-09-25 21:08:38 -07:00
Stephen Hines
d895d37e27 RS char bug repro case
Bug: 6865598

Change-Id: Ic43002e0b0646af7eda1b2283e4df7db8dfcf68b
2012-09-25 20:47:09 -07:00
Jason Sams
85d4955a13 Add test for copy kernels.
bug 7224526

Change-Id: I76e1e63b6bd53d84df9c60a61e6588b21f33c2e3
2012-09-24 17:27:59 -07:00
Stephen Hines
c4358c7960 Verify pass-by-value kernels with structs.
Bug: 7166741
Change-Id: I8b5fab1cca6bf4dcafc646fd1d6e40a718f1ffaf
2012-09-22 21:39:21 -07:00
Stephen Hines
263459d028 Add tests for pass-by-value kernels.
Bug: 7166741

Change-Id: I8bb37b9205c146a922c141665a86ce8013ad4f0a
2012-09-19 20:47:43 -07:00
Stephen Hines
2f2f0d40e8 Merge "Failing uchar4->int4 test" into jb-mr1-dev 2012-09-13 19:45:56 -07:00
Stephen Hines
58b2b24128 Updated tests for simpler ScriptC constructors.
Change-Id: Ia1f66a3598a979924ccbf857093693135012c4c9
2012-09-12 21:45:56 -07:00
Stephen Hines
7bb5745b97 Failing uchar4->int4 test
BUG=7081293

This demonstrates the missing vmovl.u16 for expanding the unsigned char input.

Change-Id: I14f560e0fb1efd1c283d2e0a87f5506ca28cf88d
2012-08-29 20:17:57 -07:00
Rajeev Sharma
6e1b917759 Add case for NEON min to RSTest
Regression test for bug 6841495.

Change-Id: If98380f402a711592dcddba5438e3cce5b008131
2012-08-07 14:30:50 -07:00
Rajeev Sharma
a807a50cf2 Add unsigned tests to math agreement test
All operations on unsigned tests were previously commented out due to
bug 6764163.  Signed char vectors remain commented out due to bug
6865598, but unsigned char vectors appear to be working properly.

Change-Id: I723c43fe69a78c8f8e03ed1e4db95f73966fcaad
2012-07-25 15:47:25 -07:00
Stephen Hines
85dae98ca1 Test for unsigned RS setters.
BUG=6764163

This verifies that we don't trample memory with our unsigned set_*()
operations. Previous versions of llvm-rs-cc generated code that could
accidentally overwrite neighboring locations (due to setVar() being
called on the larger Dalvik types for unsigned globals).

Change-Id: I014496122a05cf425efa160978d0738a5233742e
2012-07-25 11:45:28 -07:00
Rajeev Sharma
5666d8f4fb Updated math_agree test
Tests for min, max, fmin, and fmax.  Currently has tests for chars and longs as well as all unsigned types disabled due to outstanding Renderscript/LLVM bugs.  Will enable those tests cases once bugs are fixed.

Change-Id: I80474f7b68a7916c2172056421db7d170d00f1cb
2012-07-20 15:47:20 -07:00
Stephen Hines
10efb53234 Switch to "tests" instead of "optional" for build.
Change-Id: Iaea3819c18be34b5c3864015316b67397c928f2d
2012-07-02 16:40:48 -07:00
Rajeev Sharma
325ca45471 Add math agreement test. float_distance and float_almost_agree added to header
Change-Id: Ieee5e4894cb62db384588547d8762e57f3839bf4
2012-05-29 16:36:16 -07:00
Stephen Hines
030ab67e7b am 69b2bda2: am a7ea0d39: Merge "Add unit tests for convert (with relaxed precision)." into jb-dev
* commit '69b2bda2e967a2f53e689c9622c748c0a810fb46':
  Add unit tests for convert (with relaxed precision).
2012-05-15 15:17:53 -07:00
Stephen Hines
0ccbd524e6 Test float vector versions of rsDebug().
Change-Id: I74cf2e23cd323d25af6e46587da8d442fdd058c8
2012-05-14 18:06:03 -07:00
Stephen Hines
724de98edb Add unit tests for convert (with relaxed precision).
BUG=6127576

Change-Id: Ia5b4efa99de4f6df644779eeee6763eb31be4d90
2012-05-14 15:05:58 -07:00
Stephen Hines
a25b2e80c7 Test clamp (full and relaxed precision).
BUG=6127576

Change-Id: I9501be7db42daa11dcc71bd619a993c80ef097de
2012-05-10 15:25:11 -07:00
Stephen Hines
adeb809201 Start passing element/dim information along with FieldPacker.
BUG=6009244

Change-Id: I3c82c8b40c899b875831f53cf0ad82ea36c1a043
2012-05-01 00:29:52 -07:00
Stephen Hines
9b9e74eea1 Move mesh to end of test list until we fix LLVM.
Change-Id: I8f06e80d7cea4b51e47625186e45ad44adb45b6b
2012-05-01 00:29:52 -07:00
Alex Sakhartchouk
64275552a6 Fixing test affected by API renaming.
Change-Id: Ib42e1958b385069461ca9fec1ccd9f578c5d47d3
2012-04-16 11:21:02 -07:00
Alex Sakhartchouk
0e2c70112b Merge "Unhiding J API's for Renderscript." 2012-04-12 16:06:02 -07:00
Alex Sakhartchouk
918e840628 Unhiding J API's for Renderscript.
Change-Id: I8c2d43ccca94549bc6ca1a914106567ccc125503
2012-04-11 14:04:23 -07:00
Stephen Hines
72afa117b7 Add tests for rootn() to math_conformance.
BUG=6319010

Change-Id: I3fa7d688e6f3b66f51a1c25a2c2104b659691c8b
2012-04-10 20:15:47 -07:00
Alex Sakhartchouk
043f5ced1b More rearrangement and renaming.
Change-Id: Ia922c5bff1734a29b786ba95065f81c8dedf90cd
2012-03-22 10:50:55 -07:00
Alex Sakhartchouk
73797e97a8 Changing rsg to rs where functions don't rely on graphics.
Change-Id: I92a93d7a520b4a5416be88c7c05c2f8d3cc89243
2012-03-21 10:21:08 -07:00
Stephen Hines
47e432e37c Add test for signed/unsigned char bug (conversion).
BUG=6080056

Change-Id: I7980ff3e4a23ff8ba007ff0372ec855b7272630d
2012-02-27 18:06:51 -08:00
Stephen Hines
473a2048d3 Support running ForEach on non-root functions.
BUG=6000538

Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
2012-02-22 15:24:29 -08:00
Stephen Hines
9e52329454 am 96d2abab: Merge "Revert "Revert "Test initialization of constant array exports."""
* commit '96d2ababf5c9a8ccd42d67587a62637a18dc1beb':
  Revert "Revert "Test initialization of constant array exports.""
2012-02-13 18:08:08 -08:00
Stephen Hines
330f676b7e Revert "Revert "Test initialization of constant array exports.""
This reverts commit 3be5c85651.
2012-02-13 12:00:24 -08:00
Stephen Hines
1bb1178490 am 3be5c856: Revert "Test initialization of constant array exports."
* commit '3be5c8565154c9a6aa7abf0a0d61eaecf114b450':
  Revert "Test initialization of constant array exports."
2012-02-13 12:00:20 -08:00
Stephen Hines
3be5c85651 Revert "Test initialization of constant array exports."
This reverts commit f7c4ce0b6a.
2012-02-13 11:56:29 -08:00
Stephen Hines
f6c233a218 am dfb64e8c: Merge "Test initialization of constant array exports."
* commit 'dfb64e8c805dcb371c747e675bf58b4c9a10e49f':
  Test initialization of constant array exports.
2012-02-13 11:14:58 -08:00
Stephen Hines
f7c4ce0b6a Test initialization of constant array exports.
BUG=5901034

Change-Id: I15e623ec6c615aaf27d57c0261695f1ba77e1275
2012-02-07 20:32:03 -08:00
Stephen Hines
a9431e1018 Update RSTest in graphics-dev for latest pass/fail changes.
Change-Id: I93d529006eb21ffa151a0cfb3666f882f42c6b59
2012-02-01 15:50:31 -08:00
Stephen Hines
2ff0188a99 am c97992b4: Merge "Add test for "public final static"-reflected constant fields."
* commit 'c97992b489161a47f156f03ba605273dfb5e5cc2':
  Add test for "public final static"-reflected constant fields.
2012-02-01 14:04:56 -08:00
Stephen Hines
071abd1a5c Add test for "public final static"-reflected constant fields.
Change-Id: I00d7ed4e3dd2c3137de27f9e78d49aa0c59d3d6d
2012-01-31 19:33:57 -08:00
Stephen Hines
efd3fc7255 am 2247e3f0: Merge "Test RS struct writing/reading."
* commit '2247e3f0dc00762b44ef6adcbb2a91c8bbc1be58':
  Test RS struct writing/reading.
2012-01-31 17:24:46 -08:00
Stephen Hines
b1ea64edb0 Test RS struct writing/reading.
BUG=5569561

Note that this only tests the issue described in the bug. It does not actually
produce an error on any recent version of RS.

Change-Id: I0194b13cb3f4ff01ce95d966e8e2dd74119a3946
2012-01-31 15:27:08 -08:00
Stephen Hines
6bd4c7ad4f am caaac348: Merge "Fix bugs with unsigned rsAtomicCas/Max/Min."
* commit 'caaac348ed163f59cf1b8185bb14137050c18e7e':
  Fix bugs with unsigned rsAtomicCas/Max/Min.
2012-01-26 13:58:14 -08:00
Stephen Hines
109116bb2f Fix bugs with unsigned rsAtomicCas/Max/Min.
BUG=5888007

rsAtomicMax/Min did not have proper semantics for unsigned integers. They were
always using signed comparisons. rsAtomicCas had the wrong function signature
in our math library, leading to no way to properly link/execute it.

Change-Id: I336cdd8cd9f2d8093f12e101b55b2797515f039b
2012-01-25 18:17:34 -08:00
Alex Sakhartchouk
5b5664af2d Adding better error behavior to RS
Change-Id: Iea1cc76793f8978d60575404d7b1c5145e268d6e
2011-12-29 11:17:38 -08:00
Alex Sakhartchouk
fd79e02e0f Missing getter and additional tests.
Change-Id: I057dd0a29d2cad40d0a0627b4355faeb82bbc229
2011-12-22 14:30:55 -08:00
Alex Sakhartchouk
3aac0abe79 Adding tests for element/mesh getters.
Fixing bugs found by tests.

Change-Id: I6592a3b65f16b21255e7788fe8ee8aaafe268638
2011-12-22 13:11:48 -08:00
Alex Sakhartchouk
c08a1cc38f Merge "Revert "Removing changes not meant for MR1"" into graphics-dev 2011-12-07 11:06:39 -08:00
Alex Sakhartchouk
7b78d1a57a Revert "Removing changes not meant for MR1"
This reverts commit d97fd1d7c3.
2011-11-17 15:59:13 -08:00
Stephen Hines
d2f561d183 Fix setTimeZone() and use it properly in RSTest/rstime.
BUG=5470134

The original implementation for rsi_ScriptSetTimeZone() never actually did
anything with the bytes received. This change allows it to safely update the
timezone. RSTest is also updated to call setTimeZone(), so that users in
different timezones can accurately get test results.

Change-Id: I6cb1b3a0c3a417749ba39e0fe09cc9c7ab65c2e7
2011-11-10 15:44:25 -08:00
Alex Sakhartchouk
d97fd1d7c3 Removing changes not meant for MR1
Change-Id: I75136be33f12a87c2b5f21b064c06065a4145d70
2011-10-27 13:51:55 -07:00