Lines Matching full:glu

73     const glu::VarType &type;
76 VarValue(const glu::VarType &type_, const void *value_) : type(type_), value(value_) in VarValue()
85 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
86 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<()
87 const int numComponents = glu::getDataTypeScalarSize(basicType); in operator <<()
90 str << glu::getDataTypeName(basicType) << "("; in operator <<()
99 case glu::TYPE_FLOAT: in operator <<()
102 case glu::TYPE_INT: in operator <<()
105 case glu::TYPE_UINT: in operator <<()
108 case glu::TYPE_BOOL: in operator <<()
123 inline int getShaderUintBitCount(glu::ShaderType shaderType, glu::Precision precision) in getShaderUintBitCount()
128 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(bitCounts) == glu::PRECISION_LAST); in getShaderUintBitCount()
149 static void generateRandomInputData(de::Random &rnd, glu::ShaderType shaderType, glu::DataType data… in generateRandomInputData()
150 glu::Precision precision, uint32_t *dst, int numValues) in generateRandomInputData()
152 const int scalarSize = glu::getDataTypeScalarSize(dataType); in generateRandomInputData()
155 const bool isUnsigned = glu::isDataTypeUintOrUVec(dataType); in generateRandomInputData()
178 …IntegerFunctionCase(Context &context, const char *name, const char *description, glu::ShaderType s…
192 glu::ShaderType m_shaderType;
203 glu::ShaderType shaderType) in IntegerFunctionCase()
209 m_spec.version = glu::getContextTypeGLSLVersion(context.getRenderContext().getType()); in IntegerFunctionCase()
338 static std::string getIntegerFuncCaseName(glu::DataType baseType, glu::Precision precision, glu::Sh… in getIntegerFuncCaseName()
340 …return string(glu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePost… in getIntegerFuncCaseName()
346 …UaddCarryCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType … in UaddCarryCase()
350 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in UaddCarryCase()
351 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in UaddCarryCase()
352 m_spec.outputs.push_back(Symbol("sum", glu::VarType(baseType, precision))); in UaddCarryCase()
353 m_spec.outputs.push_back(Symbol("carry", glu::VarType(baseType, glu::PRECISION_LOWP))); in UaddCarryCase()
360 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
361 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
362 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
365 const bool isSigned = glu::isDataTypeIntOrIVec(type); in getInputValues()
408 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
409 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
410 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
437 …UsubBorrowCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType… in UsubBorrowCase()
441 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in UsubBorrowCase()
442 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in UsubBorrowCase()
443 m_spec.outputs.push_back(Symbol("diff", glu::VarType(baseType, precision))); in UsubBorrowCase()
444 m_spec.outputs.push_back(Symbol("carry", glu::VarType(baseType, glu::PRECISION_LOWP))); in UsubBorrowCase()
451 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
452 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
453 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
456 const bool isSigned = glu::isDataTypeIntOrIVec(type); in getInputValues()
500 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
501 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
502 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
529 …UmulExtendedCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderTy… in UmulExtendedCase()
533 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in UmulExtendedCase()
534 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in UmulExtendedCase()
535 m_spec.outputs.push_back(Symbol("msb", glu::VarType(baseType, precision))); in UmulExtendedCase()
536 m_spec.outputs.push_back(Symbol("lsb", glu::VarType(baseType, precision))); in UmulExtendedCase()
543 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
544 // const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
545 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
588 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
589 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
615 …ImulExtendedCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderTy… in ImulExtendedCase()
619 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision))); in ImulExtendedCase()
620 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision))); in ImulExtendedCase()
621 m_spec.outputs.push_back(Symbol("msb", glu::VarType(baseType, precision))); in ImulExtendedCase()
622 m_spec.outputs.push_back(Symbol("lsb", glu::VarType(baseType, precision))); in ImulExtendedCase()
629 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
630 // const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
631 const int scalarSize = glu::getDataTypeScalarSize(type); in getInputValues()
675 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
676 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
702 …BitfieldExtractCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::Shade… in BitfieldExtractCase()
706 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in BitfieldExtractCase()
707 m_spec.inputs.push_back(Symbol("offset", glu::VarType(glu::TYPE_INT, precision))); in BitfieldExtractCase()
708 m_spec.inputs.push_back(Symbol("bits", glu::VarType(glu::TYPE_INT, precision))); in BitfieldExtractCase()
709 m_spec.outputs.push_back(Symbol("extracted", glu::VarType(baseType, precision))); in BitfieldExtractCase()
716 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
717 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
718 …const bool ignoreSign = precision != glu::PRECISION_HIGHP && glu::isDataTypeIntOrIVec(typ… in getInputValues()
738 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
739 const bool isSigned = glu::isDataTypeIntOrIVec(type); in compare()
740 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
776 …BitfieldInsertCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::Shader… in BitfieldInsertCase()
780 m_spec.inputs.push_back(Symbol("base", glu::VarType(baseType, precision))); in BitfieldInsertCase()
781 m_spec.inputs.push_back(Symbol("insert", glu::VarType(baseType, precision))); in BitfieldInsertCase()
782 m_spec.inputs.push_back(Symbol("offset", glu::VarType(glu::TYPE_INT, precision))); in BitfieldInsertCase()
783 m_spec.inputs.push_back(Symbol("bits", glu::VarType(glu::TYPE_INT, precision))); in BitfieldInsertCase()
784 m_spec.outputs.push_back(Symbol("result", glu::VarType(baseType, precision))); in BitfieldInsertCase()
791 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
792 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
814 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
815 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
816 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
854 …BitfieldReverseCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::Shade… in BitfieldReverseCase()
858 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in BitfieldReverseCase()
859 m_spec.outputs.push_back(Symbol("result", glu::VarType(baseType, glu::PRECISION_HIGHP))); in BitfieldReverseCase()
866 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
867 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
875 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
876 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
878 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
901 …BitCountCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType s… in BitCountCase()
905 const int vecSize = glu::getDataTypeScalarSize(baseType); in BitCountCase()
906 … const glu::DataType intType = vecSize == 1 ? glu::TYPE_INT : glu::getDataTypeIntVec(vecSize); in BitCountCase()
908 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in BitCountCase()
909 m_spec.outputs.push_back(Symbol("count", glu::VarType(intType, glu::PRECISION_LOWP))); in BitCountCase()
916 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
917 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
925 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
926 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
928 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
962 …FindLSBCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType sh… in FindLSBCase()
966 const int vecSize = glu::getDataTypeScalarSize(baseType); in FindLSBCase()
967 … const glu::DataType intType = vecSize == 1 ? glu::TYPE_INT : glu::getDataTypeIntVec(vecSize); in FindLSBCase()
969 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in FindLSBCase()
970 m_spec.outputs.push_back(Symbol("lsb", glu::VarType(intType, glu::PRECISION_LOWP))); in FindLSBCase()
977 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
978 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
986 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
987 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
988 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1023 …FindMSBCase(Context &context, glu::DataType baseType, glu::Precision precision, glu::ShaderType sh… in FindMSBCase()
1027 const int vecSize = glu::getDataTypeScalarSize(baseType); in FindMSBCase()
1028 … const glu::DataType intType = vecSize == 1 ? glu::TYPE_INT : glu::getDataTypeIntVec(vecSize); in FindMSBCase()
1030 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision))); in FindMSBCase()
1031 m_spec.outputs.push_back(Symbol("msb", glu::VarType(intType, glu::PRECISION_LOWP))); in FindMSBCase()
1038 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in getInputValues()
1039 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in getInputValues()
1047 const glu::DataType type = m_spec.inputs[0].varType.getBasicType(); in compare()
1048 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision(); in compare()
1049 const bool isSigned = glu::isDataTypeIntOrIVec(type); in compare()
1050 const int scalarSize = glu::getDataTypeScalarSize(type); in compare()
1088 const glu::DataType scalarTypes[] = {glu::TYPE_INT, glu::TYPE_UINT}; in addFunctionCases()
1092 const glu::DataType scalarType = scalarTypes[scalarTypeNdx]; in addFunctionCases()
1094 … if ((!intTypes && scalarType == glu::TYPE_INT) || (!uintTypes && scalarType == glu::TYPE_UINT)) in addFunctionCases()
1099 for (int prec = glu::PRECISION_LOWP; prec <= glu::PRECISION_HIGHP; prec++) in addFunctionCases()
1101 if (prec != glu::PRECISION_HIGHP && !allPrec) in addFunctionCases()
1104 for (int shaderTypeNdx = 0; shaderTypeNdx < glu::SHADERTYPE_LAST; shaderTypeNdx++) in addFunctionCases()
1107 … group->addChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), in addFunctionCases()
1108glu::Precision(prec), glu::ShaderType(shaderTypeNdx))); in addFunctionCases()
1119 VS = (1 << glu::SHADERTYPE_VERTEX), in init()
1120 FS = (1 << glu::SHADERTYPE_FRAGMENT), in init()
1121 CS = (1 << glu::SHADERTYPE_COMPUTE), in init()
1122 GS = (1 << glu::SHADERTYPE_GEOMETRY), in init()
1123 TC = (1 << glu::SHADERTYPE_TESSELLATION_CONTROL), in init()
1124 TE = (1 << glu::SHADERTYPE_TESSELLATION_EVALUATION), in init()