Lines Matching refs:glu
71 const glu::VarType& type;
74 VarValue (const glu::VarType& type_, const void* value_) : type(type_), value(value_) {} in VarValue()
81 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
82 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<()
83 const int numComponents = glu::getDataTypeScalarSize(basicType); in operator <<()
86 str << glu::getDataTypeName(basicType) << "("; in operator <<()
95 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
96 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<()
97 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<()
98 …case glu::TYPE_BOOL: str << (((const deUint32*)varValue.value)[compNdx] != 0 ? "true" : "false"); … in operator <<()
111 inline int getShaderUintBitCount (glu::ShaderType shaderType, glu::Precision precision) in getShaderUintBitCount()
116 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bitCounts) == glu::PRECISION_LAST); in getShaderUintBitCount()
137 …c void generateRandomInputData (de::Random& rnd, glu::ShaderType shaderType, glu::DataType dataTyp… in generateRandomInputData()
139 const int scalarSize = glu::getDataTypeScalarSize(dataType); in generateRandomInputData()
142 const bool isUnsigned = glu::isDataTypeUintOrUVec(dataType); in generateRandomInputData()
165 …IntegerFunctionCase (Context& context, const char* name, const char* description, glu::ShaderType…
179 glu::ShaderType m_shaderType;
189 …FunctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderT… in IntegerFunctionCase()
195 m_spec.version = glu::GLSL_VERSION_310_ES; in IntegerFunctionCase()
322 static const char* getPrecisionPostfix (glu::Precision precision) in getPrecisionPostfix()
330 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(s_postfix) == glu::PRECISION_LAST); in getPrecisionPostfix()
335 static const char* getShaderTypePostfix (glu::ShaderType shaderType) in getShaderTypePostfix()
350 static std::string getIntegerFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::S… in getIntegerFuncCaseName()
352 …return string(glu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePost… in getIntegerFuncCaseName()
358 …UaddCarryCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType… in UaddCarryCase()
361 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in UaddCarryCase()
362 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in UaddCarryCase()
363 m_spec.outputs.push_back(Symbol("sum", glu::VarType(baseType, precision))); in UaddCarryCase()
364 m_spec.outputs.push_back(Symbol("carry", glu::VarType(baseType, glu::PRECISION_LOWP))); in UaddCarryCase()
371 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
372 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
373 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
376 const bool isSigned = glu::isDataTypeIntOrIVec(type); in getInputValues()
425 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
426 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
427 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
454 …UsubBorrowCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderTyp… in UsubBorrowCase()
457 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in UsubBorrowCase()
458 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in UsubBorrowCase()
459 m_spec.outputs.push_back(Symbol("diff", glu::VarType(baseType, precision))); in UsubBorrowCase()
460 m_spec.outputs.push_back(Symbol("carry", glu::VarType(baseType, glu::PRECISION_LOWP))); in UsubBorrowCase()
467 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
468 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
469 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
472 const bool isSigned = glu::isDataTypeIntOrIVec(type); in getInputValues()
519 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
520 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
521 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
548 …UmulExtendedCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderT… in UmulExtendedCase()
551 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in UmulExtendedCase()
552 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in UmulExtendedCase()
553 m_spec.outputs.push_back(Symbol("msb", glu::VarType(baseType, precision))); in UmulExtendedCase()
554 m_spec.outputs.push_back(Symbol("lsb", glu::VarType(baseType, precision))); in UmulExtendedCase()
561 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
563 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
611 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
612 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
638 …ImulExtendedCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderT… in ImulExtendedCase()
641 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in ImulExtendedCase()
642 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in ImulExtendedCase()
643 m_spec.outputs.push_back(Symbol("msb", glu::VarType(baseType, precision))); in ImulExtendedCase()
644 m_spec.outputs.push_back(Symbol("lsb", glu::VarType(baseType, precision))); in ImulExtendedCase()
651 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
653 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
702 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
703 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
729 …BitfieldExtractCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::Shad… in BitfieldExtractCase()
732 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in BitfieldExtractCase()
733 m_spec.inputs.push_back(Symbol("offset", glu::VarType(glu::TYPE_INT, precision))); in BitfieldExtractCase()
734 m_spec.inputs.push_back(Symbol("bits", glu::VarType(glu::TYPE_INT, precision))); in BitfieldExtractCase()
735 m_spec.outputs.push_back(Symbol("extracted", glu::VarType(baseType, precision))); in BitfieldExtractCase()
742 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
743 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
744 const bool ignoreSign = precision != glu::PRECISION_HIGHP && glu::isDataTypeIntOrIVec(type); in getInputValues()
764 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
765 const bool isSigned = glu::isDataTypeIntOrIVec(type); in compare()
766 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
792 …BitfieldInsertCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::Shade… in BitfieldInsertCase()
795 m_spec.inputs.push_back(Symbol("base", glu::VarType(baseType, precision))); in BitfieldInsertCase()
796 m_spec.inputs.push_back(Symbol("insert", glu::VarType(baseType, precision))); in BitfieldInsertCase()
797 m_spec.inputs.push_back(Symbol("offset", glu::VarType(glu::TYPE_INT, precision))); in BitfieldInsertCase()
798 m_spec.inputs.push_back(Symbol("bits", glu::VarType(glu::TYPE_INT, precision))); in BitfieldInsertCase()
799 m_spec.outputs.push_back(Symbol("result", glu::VarType(baseType, precision))); in BitfieldInsertCase()
806 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
807 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
829 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
830 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
831 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
869 …BitfieldReverseCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::Shad… in BitfieldReverseCase()
872 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in BitfieldReverseCase()
873 m_spec.outputs.push_back(Symbol("result", glu::VarType(baseType, glu::PRECISION_HIGHP))); in BitfieldReverseCase()
880 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
881 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
889 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
890 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
892 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
915 …BitCountCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType … in BitCountCase()
918 const int vecSize = glu::getDataTypeScalarSize(baseType); in BitCountCase()
919 const glu::DataType intType = vecSize == 1 ? glu::TYPE_INT : glu::getDataTypeIntVec(vecSize); in BitCountCase()
921 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in BitCountCase()
922 m_spec.outputs.push_back(Symbol("count", glu::VarType(intType, glu::PRECISION_LOWP))); in BitCountCase()
929 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
930 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
938 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
939 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
941 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
975 …FindLSBCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType s… in FindLSBCase()
978 const int vecSize = glu::getDataTypeScalarSize(baseType); in FindLSBCase()
979 const glu::DataType intType = vecSize == 1 ? glu::TYPE_INT : glu::getDataTypeIntVec(vecSize); in FindLSBCase()
981 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in FindLSBCase()
982 m_spec.outputs.push_back(Symbol("lsb", glu::VarType(intType, glu::PRECISION_LOWP))); in FindLSBCase()
989 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
990 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
998 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
999 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1000 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1053 …FindMSBCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType s… in FindMSBCase()
1056 const int vecSize = glu::getDataTypeScalarSize(baseType); in FindMSBCase()
1057 const glu::DataType intType = vecSize == 1 ? glu::TYPE_INT : glu::getDataTypeIntVec(vecSize); in FindMSBCase()
1059 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in FindMSBCase()
1060 m_spec.outputs.push_back(Symbol("msb", glu::VarType(intType, glu::PRECISION_LOWP))); in FindMSBCase()
1067 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1068 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1076 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1077 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1078 const bool isSigned = glu::isDataTypeIntOrIVec(type); in compare()
1079 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1115 const glu::DataType scalarTypes[] = in addFunctionCases()
1117 glu::TYPE_INT, in addFunctionCases()
1118 glu::TYPE_UINT in addFunctionCases()
1123 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases()
1125 if ((!intTypes && scalarType == glu::TYPE_INT) || (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
1130 for (int prec = glu::PRECISION_LOWP; prec <= glu::PRECISION_HIGHP; prec++) in addFunctionCases()
1132 if (prec != glu::PRECISION_HIGHP && !allPrec) in addFunctionCases()
1135 for (int shaderTypeNdx = 0; shaderTypeNdx < glu::SHADERTYPE_LAST; shaderTypeNdx++) in addFunctionCases()
1138 …dChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), glu::Precision… in addFunctionCases()
1149 VS = (1<<glu::SHADERTYPE_VERTEX), in init()
1150 FS = (1<<glu::SHADERTYPE_FRAGMENT), in init()
1151 CS = (1<<glu::SHADERTYPE_COMPUTE), in init()
1152 GS = (1<<glu::SHADERTYPE_GEOMETRY), in init()
1153 TC = (1<<glu::SHADERTYPE_TESSELLATION_CONTROL), in init()
1154 TE = (1<<glu::SHADERTYPE_TESSELLATION_EVALUATION), in init()