Merge "Fix issues found during CTS testing of FP16"
This commit is contained in:
@@ -548,8 +548,8 @@ public class Element extends BaseObj {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static Element F16_3(RenderScript rs) {
|
public static Element F16_3(RenderScript rs) {
|
||||||
if(rs.mElement_FLOAT_3 == null) {
|
if(rs.mElement_HALF_3 == null) {
|
||||||
rs.mElement_FLOAT_3 = createVector(rs, DataType.FLOAT_16, 3);
|
rs.mElement_HALF_3 = createVector(rs, DataType.FLOAT_16, 3);
|
||||||
}
|
}
|
||||||
return rs.mElement_HALF_3;
|
return rs.mElement_HALF_3;
|
||||||
}
|
}
|
||||||
@@ -926,6 +926,7 @@ public class Element extends BaseObj {
|
|||||||
|
|
||||||
switch (dt) {
|
switch (dt) {
|
||||||
// Support only primitive integer/float/boolean types as vectors.
|
// Support only primitive integer/float/boolean types as vectors.
|
||||||
|
case FLOAT_16:
|
||||||
case FLOAT_32:
|
case FLOAT_32:
|
||||||
case FLOAT_64:
|
case FLOAT_64:
|
||||||
case SIGNED_8:
|
case SIGNED_8:
|
||||||
|
|||||||
Reference in New Issue
Block a user