Lines Matching full:glu

121 inline bool supportsSignedZero(glu::Precision precision)  in supportsSignedZero()
125 return precision == glu::PRECISION_HIGHP; in supportsSignedZero()
148 static int getMinMantissaBits(glu::Precision precision) in getMinMantissaBits()
155 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bits) == glu::PRECISION_LAST); in getMinMantissaBits()
165 …CommonFunctionCase(Context &context, const char *name, const char *description, glu::ShaderType sh…
179 glu::ShaderType m_shaderType;
190 glu::ShaderType shaderType) in CommonFunctionCase()
196 m_spec.version = glu::GLSL_VERSION_300_ES; in CommonFunctionCase()
257 // \todo [2013-08-08 pyry] Make generic utility and move to glu?
287 const glu::VarType &type;
290 VarValue(const glu::VarType &type_, const void *value_) : type(type_), value(value_) in VarValue()
299 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
300 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<()
301 const int numComponents = glu::getDataTypeScalarSize(basicType); in operator <<()
304 str << glu::getDataTypeName(basicType) << "("; in operator <<()
313 case glu::TYPE_FLOAT: in operator <<()
316 case glu::TYPE_INT: in operator <<()
319 case glu::TYPE_UINT: in operator <<()
322 case glu::TYPE_BOOL: in operator <<()
405 static std::string getCommonFuncCaseName(glu::DataType baseType, glu::Precision precision, glu::Sha… in getCommonFuncCaseName()
407 …return string(glu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePost… in getCommonFuncCaseName()
413 …AbsCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shader… in AbsCase()
416 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in AbsCase()
417 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in AbsCase()
432 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
433 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
434 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
436 if (glu::isDataTypeFloatOrVec(type)) in getInputValues()
446 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
447 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
448 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
450 if (glu::isDataTypeFloatOrVec(type)) in compare()
493 …SignCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shade… in SignCase()
497 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in SignCase()
498 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in SignCase()
513 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
514 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
515 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
517 if (glu::isDataTypeFloatOrVec(type)) in getInputValues()
538 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
539 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
540 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
542 if (glu::isDataTypeFloatOrVec(type)) in compare()
546 … precision == glu::PRECISION_LOWP ? getMaxUlpDiffFromBits(getMinMantissaBits(precision)) : 0; in compare()
597 …RoundEvenCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType … in RoundEvenCase()
601 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in RoundEvenCase()
602 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in RoundEvenCase()
615 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
616 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
617 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
621 if (precision != glu::PRECISION_LOWP) in getInputValues()
638 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
647 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
648 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
650 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
652 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
712 …ModfCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shade… in ModfCase()
716 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in ModfCase()
717 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in ModfCase()
718 m_spec.outputs.push_back(Symbol("out1", glu::VarType(baseType, precision))); in ModfCase()
731 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
732 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
733 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
740 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
741 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
743 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
756 … const int bitsLost = precision != glu::PRECISION_HIGHP ? numBitsLostInOp(in0, refOut0) : 0; in compare()
779 …IsnanCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in IsnanCase()
783 DE_ASSERT(glu::isDataTypeFloatOrVec(baseType)); in IsnanCase()
785 const int vecSize = glu::getDataTypeScalarSize(baseType); in IsnanCase()
786 … const glu::DataType boolType = vecSize > 1 ? glu::getDataTypeBoolVec(vecSize) : glu::TYPE_BOOL; in IsnanCase()
788 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in IsnanCase()
789 m_spec.outputs.push_back(Symbol("out0", glu::VarType(boolType, glu::PRECISION_LAST))); in IsnanCase()
796 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
797 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
798 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
819 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
820 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
821 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
823 if (precision == glu::PRECISION_HIGHP) in compare()
861 …IsinfCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in IsinfCase()
865 DE_ASSERT(glu::isDataTypeFloatOrVec(baseType)); in IsinfCase()
867 const int vecSize = glu::getDataTypeScalarSize(baseType); in IsinfCase()
868 … const glu::DataType boolType = vecSize > 1 ? glu::getDataTypeBoolVec(vecSize) : glu::TYPE_BOOL; in IsinfCase()
870 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in IsinfCase()
871 m_spec.outputs.push_back(Symbol("out0", glu::VarType(boolType, glu::PRECISION_LAST))); in IsinfCase()
878 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
879 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
880 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
901 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
902 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
903 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
905 if (precision == glu::PRECISION_HIGHP) in compare()
943 FloatBitsToUintIntCase(Context &context, glu::DataType baseType, glu::Precision precision, in FloatBitsToUintIntCase()
944 glu::ShaderType shaderType, bool outIsSigned) in FloatBitsToUintIntCase()
948 const int vecSize = glu::getDataTypeScalarSize(baseType); in FloatBitsToUintIntCase()
949 …const glu::DataType intType = outIsSigned ? (vecSize > 1 ? glu::getDataTypeIntVec(vecSize) : glu::… in FloatBitsToUintIntCase()
950 … (vecSize > 1 ? glu::getDataTypeUintVec(vecSize) : glu::TYPE_UINT); in FloatBitsToUintIntCase()
952 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in FloatBitsToUintIntCase()
953 m_spec.outputs.push_back(Symbol("out0", glu::VarType(intType, glu::PRECISION_HIGHP))); in FloatBitsToUintIntCase()
966 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
967 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
968 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
975 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
976 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
977 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1004 …FloatBitsToIntCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::Shader… in FloatBitsToIntCase()
1013 …FloatBitsToUintCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::Shade… in FloatBitsToUintCase()
1022 BitsToFloatCase(Context &context, glu::DataType baseType, glu::ShaderType shaderType) in BitsToFloatCase()
1023 …: CommonFunctionCase(context, getCommonFuncCaseName(baseType, glu::PRECISION_HIGHP, shaderType).c_… in BitsToFloatCase()
1024glu::isDataTypeIntOrIVec(baseType) ? "intBitsToFloat" : "uintBitsToFloat", shaderType) in BitsToFloatCase()
1026 const bool inIsSigned = glu::isDataTypeIntOrIVec(baseType); in BitsToFloatCase()
1027 const int vecSize = glu::getDataTypeScalarSize(baseType); in BitsToFloatCase()
1028 … const glu::DataType floatType = vecSize > 1 ? glu::getDataTypeFloatVec(vecSize) : glu::TYPE_FLOAT; in BitsToFloatCase()
1030 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, glu::PRECISION_HIGHP))); in BitsToFloatCase()
1031 m_spec.outputs.push_back(Symbol("out0", glu::VarType(floatType, glu::PRECISION_HIGHP))); in BitsToFloatCase()
1038 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1039 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1048 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1049 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1074 …FloorCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in FloorCase()
1078 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in FloorCase()
1079 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in FloorCase()
1092 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1093 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1094 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1100 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1109 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1110 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1111 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1113 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1173 …TruncCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in TruncCase()
1177 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in TruncCase()
1178 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()
1210 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1219 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1220 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1221 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1223 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1285 …RoundCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in RoundCase()
1289 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in RoundCase()
1290 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in RoundCase()
1303 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1304 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1305 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1309 if (precision != glu::PRECISION_LOWP) in getInputValues()
1326 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1335 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1336 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1338 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1340 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1420 …CeilCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shade… in CeilCase()
1424 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in CeilCase()
1425 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in CeilCase()
1438 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1439 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1440 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1447 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1456 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1457 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1459 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1461 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1528 …FractCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shad… in FractCase()
1532 m_spec.inputs.push_back(Symbol("in0", glu::VarType(baseType, precision))); in FractCase()
1533 m_spec.outputs.push_back(Symbol("out0", glu::VarType(baseType, precision))); in FractCase()
1546 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1547 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1548 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
1552 if (precision != glu::PRECISION_LOWP) in getInputValues()
1569 if (precision == glu::PRECISION_MEDIUMP) in getInputValues()
1578 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1579 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1581 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1583 if (precision == glu::PRECISION_HIGHP || precision == glu::PRECISION_MEDIUMP) in compare()
1658 const glu::DataType scalarTypes[] = {glu::TYPE_FLOAT, glu::TYPE_INT, glu::TYPE_UINT}; in addFunctionCases()
1662 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases()
1664 …if ((!floatTypes && scalarType == glu::TYPE_FLOAT) || (!intTypes && scalarType == glu::TYPE_INT) || in addFunctionCases()
1665 (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
1670 for (int prec = glu::PRECISION_LOWP; prec <= glu::PRECISION_HIGHP; prec++) in addFunctionCases()
1672 …for (int shaderType = glu::SHADERTYPE_VERTEX; shaderType <= glu::SHADERTYPE_FRAGMENT; shaderType++) in addFunctionCases()
1673 … group->addChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), in addFunctionCases()
1674glu::Precision(prec), glu::ShaderType(shaderType))); in addFunctionCases()
1714 … const glu::DataType intType = vecSize > 1 ? glu::getDataTypeIntVec(vecSize) : glu::TYPE_INT; in init()
1715 … const glu::DataType uintType = vecSize > 1 ? glu::getDataTypeUintVec(vecSize) : glu::TYPE_UINT; in init()
1717 …for (int shaderType = glu::SHADERTYPE_VERTEX; shaderType <= glu::SHADERTYPE_FRAGMENT; shaderType++) in init()
1719 … intGroup->addChild(new BitsToFloatCase(m_context, intType, glu::ShaderType(shaderType))); in init()
1720 … uintGroup->addChild(new BitsToFloatCase(m_context, uintType, glu::ShaderType(shaderType))); in init()