Lines Matching refs:precision
222 static int getNumMantissaBits (const glu::Precision precision)
224 switch (precision)
235 static int getMinExponent (const glu::Precision precision)
237 switch (precision)
326 static inline tcu::Vec4 getDerivateThreshold (const glu::Precision precision, const tcu::Vec4& valueMin, const tcu::Vec4& valueMax, const tcu::Vec4& expectedDerivate)
328 const int baseBits = getNumMantissaBits(precision);
440 glu::Precision precision,
456 const int numBits = getNumMantissaBits(precision);
457 const int minExponent = getMinExponent(precision);
575 glu::Precision m_precision;
578 glu::Precision m_coordPrecision;
610 static std::string genVertexSource (glu::DataType coordType, glu::Precision precision)
617 "in ${PRECISION} ${DATATYPE} a_coord;\n"
618 "out ${PRECISION} ${DATATYPE} v_coord;\n"
627 vertexParams["PRECISION"] = glu::getPrecisionName(precision);
899 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
900 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
903 " ${PRECISION} ${DATATYPE} res = ${FUNC}(${VALUE}) * u_scale + u_bias;\n"
907 fragmentParams["PRECISION"] = glu::getPrecisionName(m_precision);
939 LinearDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples, const char* fragmentSrcTmpl);
952 LinearDerivateCase::LinearDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples, const char* fragmentSrcTmpl)
958 m_precision = precision;
976 fragmentParams["PRECISION"] = glu::getPrecisionName(m_precision);
1138 TextureDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples);
1156 TextureDerivateCase::TextureDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples)
1162 m_precision = precision;
1183 "uniform ${PRECISION} sampler2D u_sampler;\n"
1184 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1185 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1188 " ${PRECISION} vec4 tex = texture(u_sampler, v_coord);\n"
1189 " ${PRECISION} ${DATATYPE} res = ${FUNC}(tex${SWIZZLE}) * u_scale + u_bias;\n"
1198 fragmentParams["PRECISION"] = glu::getPrecisionName(m_precision);
1436 glu::Precision precision;
1438 FunctionSpec (const std::string& name_, DerivateFunc function_, glu::DataType dataType_, glu::Precision precision_)
1442 , precision (precision_)
1461 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1463 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1464 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1467 " ${PRECISION} ${DATATYPE} res = ${FUNC}(v_coord) * u_scale + u_bias;\n"
1476 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1478 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1479 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1481 "${PRECISION} ${DATATYPE} computeRes (${PRECISION} ${DATATYPE} value)\n"
1488 " ${PRECISION} ${DATATYPE} res = computeRes(v_coord);\n"
1497 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1499 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1500 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1503 " ${PRECISION} ${DATATYPE} res;\n"
1516 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1518 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1519 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1522 " ${PRECISION} ${DATATYPE} res = ${DATATYPE}(0.0);\n"
1534 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1536 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1537 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1540 " ${PRECISION} ${DATATYPE} res;\n"
1554 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1556 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1557 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1561 " ${PRECISION} ${DATATYPE} res;\n"
1574 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1576 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1577 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1581 " ${PRECISION} ${DATATYPE} res = ${DATATYPE}(0.0);\n"
1593 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1595 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1596 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1600 " ${PRECISION} ${DATATYPE} res;\n"
1667 // .constant - no precision variants, checks that derivate of constant arguments is 0
1691 const glu::Precision precision = glu::Precision(precNdx);
1697 if (caseNdx != 0 && precision == glu::PRECISION_LOWP)
1700 caseName << glu::getDataTypeName(dataType) << "_" << glu::getPrecisionName(precision);
1702 linearCaseGroup->addChild(new LinearDerivateCase(m_context, caseName.str().c_str(), "", function, dataType, precision, hint, surfaceType, numSamples, source));
1721 const glu::Precision precision = glu::Precision(precNdx);
1725 if (surfaceType != SURFACETYPE_FLOAT_FBO && precision == glu::PRECISION_LOWP)
1728 caseName << glu::getDataTypeName(dataType) << "_" << glu::getPrecisionName(precision);
1730 fboGroup->addChild(new LinearDerivateCase(m_context, caseName.str().c_str(), "", function, dataType, precision, hint, surfaceType, numSamples, source));
1755 const glu::Precision precision = glu::Precision(precNdx);
1758 if (surfaceType != SURFACETYPE_FLOAT_FBO && precision == glu::PRECISION_LOWP)
1761 caseName << glu::getDataTypeName(dataType) << "_" << glu::getPrecisionName(precision);
1763 fboGroup->addChild(new LinearDerivateCase(m_context, caseName.str().c_str(), "", function, dataType, precision, hint, surfaceType, numSamples, source));
1787 const glu::Precision precision = glu::Precision(precNdx);
1790 if (surfaceType != SURFACETYPE_FLOAT_FBO && precision == glu::PRECISION_LOWP)
1793 caseName << glu::getDataTypeName(dataType) << "_" << glu::getPrecisionName(precision);
1795 caseGroup->addChild(new TextureDerivateCase(m_context, caseName.str().c_str(), "", function, dataType, precision, hint, surfaceType, numSamples));