Home | History | Annotate | Download | only in functional

Lines Matching refs:Precision

221 static inline tcu::Vec4 getDerivateThreshold (const glu::Precision precision, const tcu::Vec4& valueMin, const tcu::Vec4& valueMax, const tcu::Vec4& expectedDerivate)
223 const int baseBits = precision == glu::PRECISION_HIGHP ? 23 :
224 precision == glu::PRECISION_MEDIUMP ? 10 :
225 precision == glu::PRECISION_LOWP ? 6 : 0;
325 glu::Precision m_precision;
328 glu::Precision m_coordPrecision;
360 static std::string genVertexSource (glu::DataType coordType, glu::Precision precision)
367 "in ${PRECISION} ${DATATYPE} a_coord;\n"
368 "out ${PRECISION} ${DATATYPE} v_coord;\n"
377 vertexParams["PRECISION"] = glu::getPrecisionName(precision);
640 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
641 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
644 " ${PRECISION} ${DATATYPE} res = ${FUNC}(${VALUE}) * u_scale + u_bias;\n"
648 fragmentParams["PRECISION"] = glu::getPrecisionName(m_precision);
680 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);
693 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)
699 m_precision = precision;
717 fragmentParams["PRECISION"] = glu::getPrecisionName(m_precision);
834 TextureDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples);
852 TextureDerivateCase::TextureDerivateCase (Context& context, const char* name, const char* description, DerivateFunc func, glu::DataType type, glu::Precision precision, deUint32 hint, SurfaceType surfaceType, int numSamples)
858 m_precision = precision;
879 "uniform ${PRECISION} sampler2D u_sampler;\n"
880 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
881 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
884 " ${PRECISION} vec4 tex = texture(u_sampler, v_coord);\n"
885 " ${PRECISION} ${DATATYPE} res = ${FUNC}(tex${SWIZZLE}) * u_scale + u_bias;\n"
894 fragmentParams["PRECISION"] = glu::getPrecisionName(m_precision);
1090 glu::Precision precision;
1092 FunctionSpec (const std::string& name_, DerivateFunc function_, glu::DataType dataType_, glu::Precision precision_)
1096 , precision (precision_)
1115 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1117 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1118 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1121 " ${PRECISION} ${DATATYPE} res = ${FUNC}(v_coord) * u_scale + u_bias;\n"
1130 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1132 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1133 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1135 "${PRECISION} ${DATATYPE} computeRes (${PRECISION} ${DATATYPE} value)\n"
1142 " ${PRECISION} ${DATATYPE} res = computeRes(v_coord);\n"
1151 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1153 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1154 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1157 " ${PRECISION} ${DATATYPE} res;\n"
1170 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1172 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1173 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1176 " ${PRECISION} ${DATATYPE} res = ${DATATYPE}(0.0);\n"
1188 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1190 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1191 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1194 " ${PRECISION} ${DATATYPE} res;\n"
1208 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1210 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1211 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1215 " ${PRECISION} ${DATATYPE} res;\n"
1228 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1230 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1231 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1235 " ${PRECISION} ${DATATYPE} res = ${DATATYPE}(0.0);\n"
1247 "in ${PRECISION} ${DATATYPE} v_coord;\n"
1249 "uniform ${PRECISION} ${DATATYPE} u_scale;\n"
1250 "uniform ${PRECISION} ${DATATYPE} u_bias;\n"
1254 " ${PRECISION} ${DATATYPE} res;\n"
1321 // .constant - no precision variants, checks that derivate of constant arguments is 0
1345 const glu::Precision precision = glu::Precision(precNdx);
1351 if (caseNdx != 0 && precision == glu::PRECISION_LOWP)
1354 caseName << glu::getDataTypeName(dataType) << "_" << glu::getPrecisionName(precision);
1356 linearCaseGroup->addChild(new LinearDerivateCase(m_context, caseName.str().c_str(), "", function, dataType, precision, hint, surfaceType, numSamples, source));
1375 const glu::Precision precision = glu::Precision(precNdx);
1379 if (surfaceType != SURFACETYPE_FLOAT_FBO && precision == glu::PRECISION_LOWP)
1382 caseName << glu::getDataTypeName(dataType) << "_" << glu::getPrecisionName(precision);
1384 fboGroup->addChild(new LinearDerivateCase(m_context, caseName.str().c_str(), "", function, dataType, precision, hint, surfaceType, numSamples, source));
1409 const glu::Precision precision = glu::Precision(precNdx);
1412 if (surfaceType != SURFACETYPE_FLOAT_FBO && precision == glu::PRECISION_LOWP)
1415 caseName << glu::getDataTypeName(dataType) << "_" << glu::getPrecisionName(precision);
1417 fboGroup->addChild(new LinearDerivateCase(m_context, caseName.str().c_str(), "", function, dataType, precision, hint, surfaceType, numSamples, source));
1441 const glu::Precision precision = glu::Precision(precNdx);
1444 if (surfaceType != SURFACETYPE_FLOAT_FBO && precision == glu::PRECISION_LOWP)
1447 caseName << glu::getDataTypeName(dataType) << "_" << glu::getPrecisionName(precision);
1449 caseGroup->addChild(new TextureDerivateCase(m_context, caseName.str().c_str(), "", function, dataType, precision, hint, surfaceType, numSamples));