summaryrefslogtreecommitdiff
path: root/rs/jni
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2016-10-06 10:45:42 -0700
committerMiao Wang <miaowang@google.com>2016-10-06 10:45:42 -0700
commitb742fcc808165fbeeb1a48761e7d629f60207de2 (patch)
treef4808773628705aa2c1e82d0cb16c99096367d55 /rs/jni
parent25b64aad011e207554f6497dd73e4764a6371a18 (diff)
Correctly pass number of input allocations for BLAS
Bug: 31992305 Test: Build and CTS RsBlas test pass on Angler. Change-Id: If49c0be003d9c2a2175924dc3303703b9ab49357
Diffstat (limited to 'rs/jni')
-rw-r--r--rs/jni/android_renderscript_RenderScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rs/jni/android_renderscript_RenderScript.cpp b/rs/jni/android_renderscript_RenderScript.cpp
index 06c4350a1d9b..af370ff2f630 100644
--- a/rs/jni/android_renderscript_RenderScript.cpp
+++ b/rs/jni/android_renderscript_RenderScript.cpp
@@ -644,7 +644,7 @@ nScriptIntrinsicBLAS_Single(JNIEnv *_env, jobject _this, jlong con, jlong id, ji
in_allocs[2] = (RsAllocation)C;
rsScriptForEachMulti((RsContext)con, (RsScript)id, 0,
- in_allocs, sizeof(in_allocs), nullptr,
+ in_allocs, NELEM(in_allocs), nullptr,
&call, sizeof(call), nullptr, 0);
}