summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-07-22 10:56:18 -0700
committerTim Murray <timmurray@google.com>2013-07-23 16:48:41 -0700
commit4a92d1268983edaf329f73c8a5b8860cdbb11596 (patch)
tree36d6f0e132cb84230b93a44c1826c7db086f0109 /tests
parent0b8a2be7eb9322ec221383de325be8f30b36fe9a (diff)
downloadrs-4a92d1268983edaf329f73c8a5b8860cdbb11596.tar.gz
Move to dynamic dispatch. Add support for IoAllocation* in rs.spec.
Change-Id: I013409cbb758ce5aae78347acb39c43d07aeb9bf
Diffstat (limited to 'tests')
-rw-r--r--tests/cppbasic/compute.cpp6
-rw-r--r--tests/cppbasic/mono.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/cppbasic/compute.cpp b/tests/cppbasic/compute.cpp
index d1647c41..0f7bd187 100644
--- a/tests/cppbasic/compute.cpp
+++ b/tests/cppbasic/compute.cpp
@@ -32,7 +32,7 @@ int main(int argc, char** argv)
sp<Allocation> aout = Allocation::createTyped(rs, t);
printf("Allocation %p %p\n", ain.get(), aout.get());
- sp<ScriptC_mono> sc = new ScriptC_mono(rs, NULL, 0);
+ sp<ScriptC_mono> sc = new ScriptC_mono(rs);
printf("new script\n");
// We read back the status from the script-side via a "failed" allocation.
@@ -66,8 +66,8 @@ int main(int argc, char** argv)
{
sp<const Element> e = Element::I32(rs);
Type::Builder tb(rs, e);
- tb.setX(5);
- tb.setY(5);
+ tb.setX(8);
+ tb.setY(8);
sp<const Type> t = tb.create();
sp<Allocation> kern1_in = Allocation::createTyped(rs, t);
sp<Allocation> kern1_out = Allocation::createTyped(rs, t);
diff --git a/tests/cppbasic/mono.rs b/tests/cppbasic/mono.rs
index d49d0f7d..f134b363 100644
--- a/tests/cppbasic/mono.rs
+++ b/tests/cppbasic/mono.rs
@@ -15,7 +15,7 @@
*/
#pragma version(1)
-#pragma rs java_package_name(com.android.rs.image)
+#pragma rs java_package_name(com.android.rs.cppbasic)
#pragma rs_fp_relaxed
int g_i = 4;