Use proper ScriptCall size in nScriptForEach()

Bug: 26498479

Although the size of struct ScriptCall is not used underneath in the
runtime or drivers, assign the correct value here to avoid confusion.

Change-Id: I8db19538b9f70f3bf9ee849a8724da3d9ee04785
(cherry picked from commit e8f2e445fd)
This commit is contained in:
Yang Ni
2016-03-15 16:00:02 -07:00
parent 0a278b127b
commit 2b551f4c42

View File

@@ -2071,6 +2071,8 @@ nScriptForEach(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot,
sc.array4End = 0;
sca = ≻
// sc_size is required, but unused, by the runtime and drivers.
sc_size = sizeof(sc);
}
rsScriptForEachMulti((RsContext)con, (RsScript)script, slot,