Lines Matching refs:glu
123 inline bool supportsSignedZero (glu::Precision precision) in supportsSignedZero()
127 return precision == glu::PRECISION_HIGHP; in supportsSignedZero()
149 static int getMinMantissaBits (glu::Precision precision) in getMinMantissaBits()
157 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bits) == glu::PRECISION_LAST); in getMinMantissaBits()
167 …CommonFunctionCase (Context& context, const char* name, const char* description, glu::ShaderType …
181 glu::ShaderType m_shaderType;
191 …FunctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderT… in CommonFunctionCase()
197 m_spec.version = glu::GLSL_VERSION_300_ES; in CommonFunctionCase()
284 const glu::VarType& type;
287 VarValue (const glu::VarType& type_, const void* value_) : type(type_), value(value_) {} in VarValue()
294 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
295 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<()
296 const int numComponents = glu::getDataTypeScalarSize(basicType); in operator <<()
299 str << glu::getDataTypeName(basicType) << "("; in operator <<()
308 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
309 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<()
310 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<()
311 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break; in operator <<()
390 static const char* getPrecisionPostfix (glu::Precision precision) in getPrecisionPostfix()
398 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(s_postfix) == glu::PRECISION_LAST); in getPrecisionPostfix()
403 static const char* getShaderTypePostfix (glu::ShaderType shaderType) in getShaderTypePostfix()
414 static std::string getCommonFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::Sh… in getCommonFuncCaseName()
416 …return string(glu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePost… in getCommonFuncCaseName()
422 …AbsCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shade… in AbsCase()
425 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in AbsCase()
426 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in AbsCase()
446 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
447 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
448 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
450 if (glu::isDataTypeFloatOrVec(type)) in getInputValues()
458 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
459 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
460 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
462 if (glu::isDataTypeFloatOrVec(type)) in compare()
504 …SignCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in SignCase()
507 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in SignCase()
508 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in SignCase()
528 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
529 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
530 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
532 if (glu::isDataTypeFloatOrVec(type)) in getInputValues()
551 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
552 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
553 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
555 if (glu::isDataTypeFloatOrVec(type)) in compare()
558 …const deUint32 maxUlpDiff = precision == glu::PRECISION_LOWP ? getMaxUlpDiffFromBits(getMinMantiss… in compare()
610 …RoundEvenCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType… in RoundEvenCase()
613 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in RoundEvenCase()
614 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in RoundEvenCase()
628 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
629 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
630 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
634 if (precision != glu::PRECISION_LOWP) in getInputValues()
649 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
658 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
659 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
661 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
663 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
721 …ModfCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in ModfCase()
724 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in ModfCase()
725 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in ModfCase()
726 m_spec.outputs.push_back(Symbol("out1", glu::VarType(baseType, precision))); in ModfCase()
740 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
741 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
742 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
749 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
750 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
752 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
765 const int bitsLost = precision != glu::PRECISION_HIGHP ? numBitsLostInOp(in0, refOut0) : 0; in compare()
787 …IsnanCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType sha… in IsnanCase()
790 DE_ASSERT(glu::isDataTypeFloatOrVec(baseType)); in IsnanCase()
792 const int vecSize = glu::getDataTypeScalarSize(baseType); in IsnanCase()
793 const glu::DataType boolType = vecSize > 1 ? glu::getDataTypeBoolVec(vecSize) : glu::TYPE_BOOL; in IsnanCase()
795 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in IsnanCase()
796 m_spec.outputs.push_back(Symbol("out0", glu::VarType(boolType, glu::PRECISION_LAST))); in IsnanCase()
803 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
804 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
805 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
826 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
827 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
828 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
830 if (precision == glu::PRECISION_HIGHP) in compare()
868 …IsinfCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType sha… in IsinfCase()
871 DE_ASSERT(glu::isDataTypeFloatOrVec(baseType)); in IsinfCase()
873 const int vecSize = glu::getDataTypeScalarSize(baseType); in IsinfCase()
874 const glu::DataType boolType = vecSize > 1 ? glu::getDataTypeBoolVec(vecSize) : glu::TYPE_BOOL; in IsinfCase()
876 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in IsinfCase()
877 m_spec.outputs.push_back(Symbol("out0", glu::VarType(boolType, glu::PRECISION_LAST))); in IsinfCase()
884 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
885 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
886 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
907 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
908 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
909 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
911 if (precision == glu::PRECISION_HIGHP) in compare()
949 …FloatBitsToUintIntCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::S… in FloatBitsToUintIntCase()
952 const int vecSize = glu::getDataTypeScalarSize(baseType); in FloatBitsToUintIntCase()
953 …const glu::DataType intType = outIsSigned ? (vecSize > 1 ? glu::getDataTypeIntVec(vecSize) : glu:… in FloatBitsToUintIntCase()
954 : (vecSize > 1 ? glu::getDataTypeUintVec(vecSize) : glu::TYPE_UINT); in FloatBitsToUintIntCase()
956 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in FloatBitsToUintIntCase()
957 m_spec.outputs.push_back(Symbol("out0", glu::VarType(intType, glu::PRECISION_HIGHP))); in FloatBitsToUintIntCase()
971 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
972 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
973 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
980 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
981 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
982 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1009 …FloatBitsToIntCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::Shade… in FloatBitsToIntCase()
1018 …FloatBitsToUintCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::Shad… in FloatBitsToUintCase()
1027 BitsToFloatCase (Context& context, glu::DataType baseType, glu::ShaderType shaderType) in BitsToFloatCase()
1028 …unctionCase(context, getCommonFuncCaseName(baseType, glu::PRECISION_HIGHP, shaderType).c_str(), gl… in BitsToFloatCase()
1030 const bool inIsSigned = glu::isDataTypeIntOrIVec(baseType); in BitsToFloatCase()
1031 const int vecSize = glu::getDataTypeScalarSize(baseType); in BitsToFloatCase()
1032 const glu::DataType floatType = vecSize > 1 ? glu::getDataTypeFloatVec(vecSize) : glu::TYPE_FLOAT; in BitsToFloatCase()
1034 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, glu::PRECISION_HIGHP))); in BitsToFloatCase()
1035 m_spec.outputs.push_back(Symbol("out0", glu::VarType(floatType, glu::PRECISION_HIGHP))); in BitsToFloatCase()
1042 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1043 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1052 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1053 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1077 …FloorCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType sha… in FloorCase()
1080 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in FloorCase()
1081 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in FloorCase()
1095 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1096 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1097 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1102 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1111 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1112 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1113 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1115 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1173 …TruncCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType sha… in TruncCase()
1176 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in TruncCase()
1177 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in TruncCase()
1191 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1192 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1193 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1208 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1217 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1218 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1219 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1221 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1281 …RoundCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType sha… in RoundCase()
1284 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in RoundCase()
1285 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in RoundCase()
1299 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1300 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1301 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1305 if (precision != glu::PRECISION_LOWP) in getInputValues()
1320 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1329 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1330 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1332 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1334 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1409 …CeilCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in CeilCase()
1412 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in CeilCase()
1413 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in CeilCase()
1427 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1428 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1429 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1435 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1444 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1445 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1447 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1449 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1514 …FractCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType sha… in FractCase()
1517 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in FractCase()
1518 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in FractCase()
1532 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1533 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1534 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1538 if (precision != glu::PRECISION_LOWP) in getInputValues()
1553 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1562 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1563 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1565 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1567 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1638 const glu::DataType scalarTypes[] = in addFunctionCases()
1640 glu::TYPE_FLOAT, in addFunctionCases()
1641 glu::TYPE_INT, in addFunctionCases()
1642 glu::TYPE_UINT in addFunctionCases()
1647 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases()
1649 if ((!floatTypes && scalarType == glu::TYPE_FLOAT) || in addFunctionCases()
1650 (!intTypes && scalarType == glu::TYPE_INT) || in addFunctionCases()
1651 (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
1656 for (int prec = glu::PRECISION_LOWP; prec <= glu::PRECISION_HIGHP; prec++) in addFunctionCases()
1658 …for (int shaderType = glu::SHADERTYPE_VERTEX; shaderType <= glu::SHADERTYPE_FRAGMENT; shaderType++) in addFunctionCases()
1659 …dChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), glu::Precision… in addFunctionCases()
1699 const glu::DataType intType = vecSize > 1 ? glu::getDataTypeIntVec(vecSize) : glu::TYPE_INT; in init()
1700 const glu::DataType uintType = vecSize > 1 ? glu::getDataTypeUintVec(vecSize) : glu::TYPE_UINT; in init()
1702 …for (int shaderType = glu::SHADERTYPE_VERTEX; shaderType <= glu::SHADERTYPE_FRAGMENT; shaderType++) in init()
1704 intGroup->addChild(new BitsToFloatCase(m_context, intType, glu::ShaderType(shaderType))); in init()
1705 uintGroup->addChild(new BitsToFloatCase(m_context, uintType, glu::ShaderType(shaderType))); in init()