/external/deqp/framework/randomshaders/ |
D | rsgUtils.cpp | 57 void computeRandomValue (de::Random& rnd, ValueAccess dst, ConstValueRangeAccess valueRange) in computeRandomValue() argument 67 float minVal = valueRange.component(ndx).getMin().asFloat(); in computeRandomValue() 68 float maxVal = valueRange.component(ndx).getMax().asFloat(); in computeRandomValue() 76 int minVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRandomValue() 77 int maxVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRandomValue() 87 int minVal = valueRange.component(ndx).getMin().asInt(); in computeRandomValue() 88 int maxVal = valueRange.component(ndx).getMax().asInt(); in computeRandomValue() 97 computeRandomValue(rnd, dst.arrayElement(ndx), valueRange.arrayElement(ndx)); in computeRandomValue() 105 computeRandomValue(rnd, dst.member(ndx), valueRange.member(ndx)); in computeRandomValue() 125 bool isUndefinedValueRange (ConstValueRangeAccess valueRange) in isUndefinedValueRange() argument [all …]
|
D | rsgBuiltinFunctions.hpp | 39 …aryBuiltinVecFunc (GeneratorState& state, const char* function, ConstValueRangeAccess valueRange); 48 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 58 …UnaryBuiltinVecFunc (GeneratorState& state, const char* function, ConstValueRangeAccess valueRange) in UnaryBuiltinVecFunc() argument 60 , m_inValueRange (valueRange.getType()) in UnaryBuiltinVecFunc() 64 DE_ASSERT(valueRange.getType().isFloatOrVec()); in UnaryBuiltinVecFunc() 66 m_value.setStorage(valueRange.getType()); in UnaryBuiltinVecFunc() 71 ConstValueRangeAccess outRange = valueRange.component(ndx); in UnaryBuiltinVecFunc() 121 …uteValueRange, Evaluate>::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument 124 if (!valueRange.getType().isFloatOrVec()) in getWeight() 129 if (availableLevels < getConservativeValueExprDepth(state, valueRange) + 1) in getWeight() [all …]
|
D | rsgBinaryOps.hpp | 55 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 72 …BinaryVecOp (GeneratorState& state, Token::Type operatorToken, ConstValueRangeAccess valueRange); 95 MulOp (GeneratorState& state, ConstValueRangeAccess valueRange); 98 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 117 AddOp (GeneratorState& state, ConstValueRangeAccess valueRange); 120 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 139 SubOp (GeneratorState& state, ConstValueRangeAccess valueRange); 142 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 151 …RelationalOp (GeneratorState& state, Token::Type operatorToken, ConstValueRangeAccess valueRange); 156 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); [all …]
|
D | rsgExpression.cpp | 66 IsReadableIntersectingEntry (ConstValueRangeAccess valueRange, deUint32 exprFlags) in IsReadableIntersectingEntry() argument 68 , m_valueRange (valueRange) in IsReadableIntersectingEntry() 95 IsWritableIntersectingEntry (ConstValueRangeAccess valueRange) in IsWritableIntersectingEntry() argument 96 : m_valueRange(valueRange) in IsWritableIntersectingEntry() 116 IsWritableSupersetEntry (ConstValueRangeAccess valueRange) in IsWritableSupersetEntry() argument 117 : m_valueRange(valueRange) in IsWritableSupersetEntry() 164 void computeRandomValueRangeForInfElements (GeneratorState& state, ValueRangeAccess valueRange) in computeRandomValueRangeForInfElements() argument 166 const VariableType& type = valueRange.getType(); in computeRandomValueRangeForInfElements() 178 if (valueRange.getMin().component(ndx).asScalar() != Scalar::min<int>() || in computeRandomValueRangeForInfElements() 179 valueRange.getMax().component(ndx).asScalar() != Scalar::max<int>()) in computeRandomValueRangeForInfElements() [all …]
|
D | rsgExpression.hpp | 64 static Expression* createRandom (GeneratorState& state, ConstValueRangeAccess valueRange); 65 static Expression* createRandomLValue (GeneratorState& state, ConstValueRangeAccess valueRange); 90 VariableRead (GeneratorState& state, ConstValueRangeAccess valueRange); 94 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 100 VariableWrite (GeneratorState& state, ConstValueRangeAccess valueRange); 103 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 109 FloatLiteral (GeneratorState& state, ConstValueRangeAccess valueRange); 116 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); 128 IntLiteral (GeneratorState& state, ConstValueRangeAccess valueRange); 134 static float getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange); [all …]
|
D | rsgBinaryOps.cpp | 326 …aryOp<Precedence, Assoc>::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight() argument 333 if (valueRange.getType().isVoid()) in getWeight() 336 if (availableLevels < getConservativeValueExprDepth(state, valueRange) + 1) in getWeight() 367 ValueRange valueRange = inValueRange; in BinaryVecOp() local 369 if (valueRange.getType().isVoid()) in BinaryVecOp() 381 valueRange = ValueRange(VariableType(baseType, numElements)); in BinaryVecOp() 382 computeRandomValueRange(state, valueRange.asAccess()); in BinaryVecOp() 386 this->m_type = valueRange.getType(); in BinaryVecOp() 398 ConstValueRangeAccess dst = valueRange.asAccess().component(elemNdx); in BinaryVecOp() 531 MulOp::MulOp (GeneratorState& state, ConstValueRangeAccess valueRange) in MulOp() argument [all …]
|
D | rsgShaderGenerator.cpp | 137 void fillUndefinedComponents (ValueRangeAccess valueRange) in fillUndefinedComponents() argument 139 VariableType::Type baseType = valueRange.getType().getBaseType(); in fillUndefinedComponents() 144 for (int elemNdx = 0; elemNdx < valueRange.getType().getNumElements(); elemNdx++) in fillUndefinedComponents() 146 if (isUndefinedValueRange(valueRange.component(elemNdx))) in fillUndefinedComponents() 148 ValueAccess min = valueRange.component(elemNdx).getMin(); in fillUndefinedComponents() 149 ValueAccess max = valueRange.component(elemNdx).getMax(); in fillUndefinedComponents() 207 ValueRange valueRange(fragColorVar->getType()); in generate() local 209 valueRange.getMin() = tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f); in generate() 210 valueRange.getMax() = tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f); in generate() 214 m_state.getVariableManager().setValue(fragColorVar, valueRange.asAccess()); in generate() [all …]
|
D | rsgFunctionGenerator.cpp | 70 ValueRange valueRange(variable->getType()); in generate() local 72 valueRange.getMin() = entry->getValueRange().getMin().value(); in generate() 73 valueRange.getMax() = entry->getValueRange().getMax().value(); in generate() 78 if (!isUndefinedValueRange(valueRange.asAccess())) in generate() 79 m_function.getBody().addChild(new AssignStatement(m_state, variable, valueRange.asAccess())); in generate()
|
D | rsgUtils.hpp | 43 bool isUndefinedValueRange (ConstValueRangeAccess valueRange); 45 int getConservativeValueExprDepth (const GeneratorState& state, ConstValueRangeAccess valueRange… 49 void computeRandomValueRange (GeneratorState& state, ValueRangeAccess valueRange); 51 float computeDynamicRangeWeight (ConstValueRangeAccess valueRange);
|
D | rsgExpressionGenerator.cpp | 38 Expression* ExpressionGenerator::generate (const ValueRange& valueRange, int initialDepth) in generate() argument 42 Expression* root = Expression::createRandom(m_state, valueRange); in generate()
|
D | rsgShader.cpp | 58 ShaderInput::ShaderInput (const Variable* variable, ConstValueRangeAccess valueRange) in ShaderInput() argument 63 ValueAccess(variable->getType(), &m_min[0]) = valueRange.getMin().value(); in ShaderInput() 64 ValueAccess(variable->getType(), &m_max[0]) = valueRange.getMax().value(); in ShaderInput()
|
D | rsgProgramExecutor.cpp | 138 …ridedValueAccess<Stride> dst, int dstComp, const ConstValueRangeAccess valueRange, float x, float … in interpolateVertexInput() argument 140 TCU_CHECK(valueRange.getType().getBaseType() == VariableType::TYPE_FLOAT); in interpolateVertexInput() 141 int numElements = valueRange.getType().getNumElements(); in interpolateVertexInput() 146 …entNdx).asFloat(dstComp) = interpolateVertex(valueRange.getMin().component(elementNdx).asFloat(), … in interpolateVertexInput()
|
D | rsgExpressionGenerator.hpp | 42 Expression* generate (const ValueRange& valueRange, int initialDepth = 0);
|
D | rsgStatement.cpp | 298 ValueRange valueRange = value->getValueRange(); in DeclarationStatement() local 308 m_expression = generator.generate(valueRange, 1); in DeclarationStatement() 542 …AssignStatement (GeneratorState& state, const Variable* variable, ConstValueRangeAccess valueRange) in AssignStatement() argument 548 m_valueExpr = generator.generate(valueRange, 1); in AssignStatement()
|
D | rsgVariableManager.cpp | 40 SubValueRangeIterator (const ConstValueRangeAccess& valueRange); 52 SubValueRangeIterator::SubValueRangeIterator (const ConstValueRangeAccess& valueRange) in SubValueRangeIterator() argument 54 m_stack.push_back(valueRange); in SubValueRangeIterator()
|
D | rsgShader.hpp | 67 ShaderInput (const Variable* variable, ConstValueRangeAccess valueRange);
|
D | rsgStatement.hpp | 141 …ignStatement (GeneratorState& state, const Variable* variable, ConstValueRangeAccess valueRange);
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | WavePlotView.java | 273 double valueRange = valueMax - valueMin; in onDraw() local 349 float top = (float) ((valueMax - mValuesArray[i]) / valueRange) * h; in onDraw() 350 float bottom = (float) ((valueMax - mValuesArray2[i]) / valueRange) * h + 1; in onDraw() 356 float first = (float) ((valueMax - mValuesArray[i]) / valueRange) * h; in onDraw() 357 float second = (float) ((valueMax - mValuesArray[i + 1]) / valueRange) * h; in onDraw() 376 float top = iY + (float) ((valueMax - mInsetArray[i]) / valueRange) * iH; in onDraw() 378 (float) ((valueMax - mInsetArray2[i]) / valueRange) * iH + 1; in onDraw()
|
/external/deqp/modules/glshared/ |
D | glsRandomShaderCase.cpp | 160 rsg::ConstValueRangeAccess valueRange = input->getValueRange(); in init() local 188 float minVal = valueRange.getMin().component(compNdx).asFloat(); in init() 189 float maxVal = valueRange.getMax().component(compNdx).asFloat(); in init() 452 …u::MessageBuilder& operator<< (tcu::MessageBuilder& message, rsg::ConstValueRangeAccess valueRange) in operator <<() argument 454 return message << valueRange.getMin() << " -> " << valueRange.getMax(); in operator <<()
|
D | glsFragOpInteractionCase.cpp | 541 const rsg::ConstValueRangeAccess valueRange = shaderIn->getValueRange(); in iterate() local 554 …case 1: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<1>())); brea… in iterate() 555 …case 2: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<2>())); brea… in iterate() 556 …case 3: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<3>())); brea… in iterate() 557 …case 4: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<4>())); brea… in iterate()
|
/external/deqp/modules/gles31/functional/ |
D | es31fTextureBorderClampTests.cpp | 1553 const tcu::IVec4 valueRange = maxValue - minValue; in init() local 1554 const tcu::IVec4 divSafeRange ((valueRange[0]==0) ? (1) : (valueRange[0]), in init() 1555 (valueRange[1]==0) ? (1) : (valueRange[1]), in init() 1556 (valueRange[2]==0) ? (1) : (valueRange[2]), in init() 1557 (valueRange[3]==0) ? (1) : (valueRange[3])); in init()
|