Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50a8ff10 authored by Miao Wang's avatar Miao Wang
Browse files

[RenderScript] (minor) fix validation of L3 BLAS

bug: 21028875

Change-Id: I9fd48c57b6518e06ee1d9d7d4ca44faa96d887b0
parent 08cba16a
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -1039,15 +1039,9 @@ 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");
            }
            }
        } else if (A != null && B != null) {
            // A and B only
            if (aN != bM) {