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

Commit 26ecb5e4 authored by Jason Sams's avatar Jason Sams Committed by Android Git Automerger
Browse files

am b498b2d2: Merge "Fix issues found during CTS testing of FP16"

* commit 'b498b2d2':
  Fix issues found during CTS testing of FP16
parents 224b6aad b498b2d2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -536,8 +536,8 @@ public class Element extends BaseObj {
    }

    public static Element F16_3(RenderScript rs) {
        if(rs.mElement_FLOAT_3 == null) {
            rs.mElement_FLOAT_3 = createVector(rs, DataType.FLOAT_16, 3);
        if(rs.mElement_HALF_3 == null) {
            rs.mElement_HALF_3 = createVector(rs, DataType.FLOAT_16, 3);
        }
        return rs.mElement_HALF_3;
    }
@@ -911,6 +911,7 @@ public class Element extends BaseObj {

        switch (dt) {
        // Support only primitive integer/float/boolean types as vectors.
        case FLOAT_16:
        case FLOAT_32:
        case FLOAT_64:
        case SIGNED_8: