[RenderScript] (minor) fix validation of L3 BLAS

bug: 21028875

Change-Id: I9fd48c57b6518e06ee1d9d7d4ca44faa96d887b0
This commit is contained in:
Miao Wang
2015-05-01 15:32:24 -07:00
parent 08cba16a59
commit 50a8ff108f

View File

@@ -1039,14 +1039,8 @@ public final class ScriptIntrinsicBLAS extends ScriptIntrinsic {
if (cM != cN) {
throw new RSRuntimeException("Matrix C is not symmetric");
}
if (TransA != NO_TRANSPOSE) {
if (aN != cM) {
throw new RSRuntimeException("Called BLAS with invalid dimensions");
}
} else {
if (aM != cM) {
throw new RSRuntimeException("Called BLAS with invalid dimensions");
}
if (aM != cM) {
throw new RSRuntimeException("Called BLAS with invalid dimensions");
}
} else if (A != null && B != null) {
// A and B only