Home | History | Annotate | Download | only in functional

Lines Matching refs:Precision

111 inline int getShaderUintBitCount (glu::ShaderType shaderType, glu::Precision precision)
117 return bitCounts[precision];
137 static void generateRandomInputData (de::Random& rnd, glu::ShaderType shaderType, glu::DataType dataType, glu::Precision precision, deUint32* dst, int numValues)
140 const deUint32 integerLength = (deUint32)getShaderUintBitCount(shaderType, precision);
322 static const char* getPrecisionPostfix (glu::Precision precision)
331 DE_ASSERT(de::inBounds<int>(precision, 0, DE_LENGTH_OF_ARRAY(s_postfix)));
332 return s_postfix[precision];
350 static std::string getIntegerFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
352 return string(glu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePostfix(shaderType);
358 UaddCarryCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
359 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "uaddCarry", shaderType)
361 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision)));
362 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision)));
363 m_spec.outputs.push_back(Symbol("sum", glu::VarType(baseType, precision)));
372 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
374 const int integerLength = getShaderUintBitCount(m_shaderType, precision);
419 generateRandomInputData(rnd, m_shaderType, type, precision, in0, numValues - DE_LENGTH_OF_ARRAY(easyCases));
420 generateRandomInputData(rnd, m_shaderType, type, precision, in1, numValues - DE_LENGTH_OF_ARRAY(easyCases));
426 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
428 const int integerLength = getShaderUintBitCount(m_shaderType, precision);
454 UsubBorrowCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
455 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "usubBorrow", shaderType)
457 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision)));
458 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision)));
459 m_spec.outputs.push_back(Symbol("diff", glu::VarType(baseType, precision)));
468 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
470 const int integerLength = getShaderUintBitCount(m_shaderType, precision);
513 generateRandomInputData(rnd, m_shaderType, type, precision, in0, numValues - DE_LENGTH_OF_ARRAY(easyCases));
514 generateRandomInputData(rnd, m_shaderType, type, precision, in1, numValues - DE_LENGTH_OF_ARRAY(easyCases));
520 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
522 const int integerLength = getShaderUintBitCount(m_shaderType, precision);
548 UmulExtendedCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
549 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "umulExtended", shaderType)
551 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision)));
552 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision)));
553 m_spec.outputs.push_back(Symbol("msb", glu::VarType(baseType, precision)));
554 m_spec.outputs.push_back(Symbol("lsb", glu::VarType(baseType, precision)));
562 // const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
638 ImulExtendedCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
639 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "imulExtended", shaderType)
641 m_spec.inputs.push_back(Symbol("x", glu::VarType(baseType, precision)));
642 m_spec.inputs.push_back(Symbol("y", glu::VarType(baseType, precision)));
643 m_spec.outputs.push_back(Symbol("msb", glu::VarType(baseType, precision)));
644 m_spec.outputs.push_back(Symbol("lsb", glu::VarType(baseType, precision)));
652 // const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
729 BitfieldExtractCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
730 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "bitfieldExtract", shaderType)
732 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
733 m_spec.inputs.push_back(Symbol("offset", glu::VarType(glu::TYPE_INT, precision)));
734 m_spec.inputs.push_back(Symbol("bits", glu::VarType(glu::TYPE_INT, precision)));
735 m_spec.outputs.push_back(Symbol("extracted", glu::VarType(baseType, precision)));
743 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
744 const bool ignoreSign = precision != glu::PRECISION_HIGHP && glu::isDataTypeIntOrIVec(type);
745 const int numBits = getShaderUintBitCount(m_shaderType, precision) - (ignoreSign ? 1 : 0);
759 generateRandomInputData(rnd, m_shaderType, type, precision, inValue, numValues);
792 BitfieldInsertCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
793 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "bitfieldInsert", shaderType)
795 m_spec.inputs.push_back(Symbol("base", glu::VarType(baseType, precision)));
796 m_spec.inputs.push_back(Symbol("insert", glu::VarType(baseType, precision)));
797 m_spec.inputs.push_back(Symbol("offset", glu::VarType(glu::TYPE_INT, precision)));
798 m_spec.inputs.push_back(Symbol("bits", glu::VarType(glu::TYPE_INT, precision)));
799 m_spec.outputs.push_back(Symbol("result", glu::VarType(baseType, precision)));
807 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
808 const int numBits = getShaderUintBitCount(m_shaderType, precision);
823 generateRandomInputData(rnd, m_shaderType, type, precision, inBase, numValues);
824 generateRandomInputData(rnd, m_shaderType, type, precision, inInsert, numValues);
830 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
832 const int integerLength = getShaderUintBitCount(m_shaderType, precision);
869 BitfieldReverseCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
870 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "bitfieldReverse", shaderType)
872 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
881 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
884 generateRandomInputData(rnd, m_shaderType, type, precision, inValue, numValues);
890 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
891 const int integerLength = getShaderUintBitCount(m_shaderType, precision);
915 BitCountCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
916 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "bitCount", shaderType)
921 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
930 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
933 generateRandomInputData(rnd, m_shaderType, type, precision, inValue, numValues);
939 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
940 const int integerLength = getShaderUintBitCount(m_shaderType, precision);
975 FindLSBCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
976 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "findLSB", shaderType)
981 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
990 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
993 generateRandomInputData(rnd, m_shaderType, type, precision, inValue, numValues);
999 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
1001 const int integerLength = getShaderUintBitCount(m_shaderType, precision);
1053 FindMSBCase (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType)
1054 : IntegerFunctionCase(context, getIntegerFuncCaseName(baseType, precision, shaderType).c_str(), "findMSB", shaderType)
1059 m_spec.inputs.push_back(Symbol("value", glu::VarType(baseType, precision)));
1068 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
1071 generateRandomInputData(rnd, m_shaderType, type, precision, inValue, numValues);
1077 const glu::Precision precision = m_spec.inputs[0].varType.getPrecision();
1080 const int integerLength = getShaderUintBitCount(m_shaderType, precision);
1138 group->addChild(new TestClass(parent->getContext(), glu::DataType(scalarType + vecSize - 1), glu::Precision(prec), glu::ShaderType(shaderTypeNdx)));