Fix Allocation-less launches

Cherry-pick fix from AOSP.  Error check for kernel launch was
generating a false positive.

bug 20690242


Change-Id: Ic4c6644072a11aab9a273070be5734519136f685
This commit is contained in:
Jason Sams
2015-05-05 18:00:34 -07:00
parent e74007ded3
commit d1516dffa8
2 changed files with 4 additions and 4 deletions

View File

@@ -182,9 +182,9 @@ public class Script extends BaseObj {
mRS.validateObject(ain);
mRS.validateObject(aout);
if (ain == null && aout == null) {
if (ain == null && aout == null && sc == null) {
throw new RSIllegalArgumentException(
"At least one of ain or aout is required to be non-null.");
"At least one of input allocation, output allocation, or LaunchOptions is required to be non-null.");
}
long[] in_ids = null;