/external/deqp/external/vulkancts/modules/vulkan/texture/ |
D | vktSampleVerifierUtil.cpp | 182 for (int compNdx = 0; compNdx < numComp; ++compNdx) in wrapTexelGridCoordLinear() local 184 texelGridOffset[compNdx] -= subdivisions / (int) 2; in wrapTexelGridCoordLinear() 186 if (texelGridOffset[compNdx] < 0) in wrapTexelGridCoordLinear() 188 baseTexel [compNdx] -= 1; in wrapTexelGridCoordLinear() 189 texelGridOffset[compNdx] += (deInt32) subdivisions; in wrapTexelGridCoordLinear() 201 for (int compNdx = 0; compNdx < 3; ++compNdx) in calcTexelBaseOffset() local 204 baseTexel[compNdx] = gridCoord[compNdx] / (deInt32) subdivisions; in calcTexelBaseOffset() 205 texelGridOffset[compNdx] = gridCoord[compNdx] % (deInt32) subdivisions; in calcTexelBaseOffset() 217 for (int compNdx = 0; compNdx < 3; ++compNdx) in calcTexelGridCoordRange() local 219 const float comp[2] = {unnormalizedCoordMin[compNdx], in calcTexelGridCoordRange() [all …]
|
D | vktSampleVerifierUtil.hpp | 111 for (int compNdx = 0; compNdx < Size; ++compNdx) in isEqualRelEpsilon() local 113 if (!isEqualRelEpsilon(a[compNdx], b[compNdx], epsilon)) in isEqualRelEpsilon() 125 for (int compNdx = 0; compNdx < Size; ++compNdx) in isInRange() local 127 if (v[compNdx] < min[compNdx] || v[compNdx] > max[compNdx]) in isInRange() 141 for (int compNdx = 0; compNdx < Size; ++compNdx) in floor() local 143 result[compNdx] = (float)deFloor(v[compNdx]); in floor() 154 for (int compNdx = 0; compNdx < Size; ++compNdx) in ceil() local 156 result[compNdx] = (float)deCeil(v[compNdx]); in ceil() 167 for (int compNdx = 0; compNdx < Size; ++compNdx) in abs() local 169 result[compNdx] = de::abs(v[compNdx]); in abs()
|
D | vktSampleVerifier.cpp | 86 bool SampleVerifier::coordOutOfRange (const IVec3& coord, int compNdx, int level) const in coordOutOfRange() argument 88 DE_ASSERT(compNdx >= 0 && compNdx < 3); in coordOutOfRange() 90 return coord[compNdx] < 0 || coord[compNdx] >= m_levels[level].getSize()[compNdx]; in coordOutOfRange() 206 for (int compNdx = 0; compNdx < 4; ++compNdx) in fetchTexel() local 208 float compMin = cornerTexels[0][compNdx]; in fetchTexel() 209 float compMax = cornerTexels[0][compNdx]; in fetchTexel() 213 const float comp = cornerTexels[ndx][compNdx]; in fetchTexel() 219 resultMin[compNdx] = compMin; in fetchTexel() 220 resultMax[compNdx] = compMax; in fetchTexel() 239 for (int compNdx = 0; compNdx < 3; ++compNdx) in fetchTexel() local [all …]
|
D | vktTextureFilteringExplicitLodTests.cpp | 603 for (deUint8 compNdx = 0; compNdx < 3; ++compNdx) in TextureFilteringTestInstance() local 604 DE_ASSERT(m_imParams.size[compNdx] > 0); in TextureFilteringTestInstance() 713 for (deUint8 compNdx = 0; compNdx < 4; ++compNdx) in execute() local 715 coords.push_back(sampleArgs.coord[compNdx]); in execute() 716 dPdxs .push_back(sampleArgs.dPdx[compNdx]); in execute() 717 dPdys .push_back(sampleArgs.dPdy[compNdx]); in execute()
|
D | vktSampleVerifier.hpp | 184 int compNdx,
|
/external/deqp/modules/gles31/functional/ |
D | es31fShaderIntegerFunctionTests.cpp | 88 for (int compNdx = 0; compNdx < numComponents; compNdx++) in operator <<() local 90 if (compNdx != 0) in operator <<() 95 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 96 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<() 97 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 98 …case glu::TYPE_BOOL: str << (((const deUint32*)varValue.value)[compNdx] != 0 ? "true" : "false"); … in operator <<() 147 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in generateRandomInputData() local 148 dst[valueNdx*scalarSize + compNdx] = rnd.getUint32() & integerMask; in generateRandomInputData() 153 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in generateRandomInputData() local 154 … dst[valueNdx*scalarSize + compNdx] = extendSignTo32(rnd.getUint32() & integerMask, integerLength); in generateRandomInputData() [all …]
|
D | es31fShaderCommonFunctionTests.cpp | 375 for (int compNdx = 0; compNdx < numComponents; compNdx++) in operator <<() local 377 if (compNdx != 0) in operator <<() 382 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 383 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<() 384 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 385 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 545 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() local 547 const float in0 = ((const float*)inputs[0])[compNdx]; in compare() 548 const float out0 = ((const float*)outputs[0])[compNdx]; in compare() 554 …m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxU… in compare() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderIntegerFunctionTests.cpp | 90 for (int compNdx = 0; compNdx < numComponents; compNdx++) in operator <<() local 92 if (compNdx != 0) in operator <<() 97 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 98 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<() 99 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 100 …case glu::TYPE_BOOL: str << (((const deUint32*)varValue.value)[compNdx] != 0 ? "true" : "false"); … in operator <<() 149 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in generateRandomInputData() local 150 dst[valueNdx*scalarSize + compNdx] = rnd.getUint32() & integerMask; in generateRandomInputData() 155 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in generateRandomInputData() local 156 … dst[valueNdx*scalarSize + compNdx] = extendSignTo32(rnd.getUint32() & integerMask, integerLength); in generateRandomInputData() [all …]
|
D | vktShaderCommonFunctionTests.cpp | 318 for (int compNdx = 0; compNdx < numComponents; compNdx++) in operator <<() local 320 if (compNdx != 0) in operator <<() 325 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 326 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<() 327 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 328 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 620 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() local 622 const float in0 = ((const float*)inputs[0])[compNdx]; in compare() 623 const float out0 = ((const float*)outputs[0])[compNdx]; in compare() 629 …m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxU… in compare() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderCommonFunctionTests.cpp | 301 for (int compNdx = 0; compNdx < numComponents; compNdx++) in operator <<() local 303 if (compNdx != 0) in operator <<() 308 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 309 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<() 310 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 311 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 467 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() local 469 const float in0 = ((const float*)inputs[0])[compNdx]; in compare() 470 const float out0 = ((const float*)outputs[0])[compNdx]; in compare() 476 …m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxU… in compare() [all …]
|
D | es3fTransformFeedbackTests.cpp | 545 for (int compNdx = 0; compNdx < numComps; compNdx++) in genAttributeData() local 547 int offset = attrib.offset+elemNdx*stride+compNdx*elementSize; in genAttributeData() 735 for (int compNdx = 0; compNdx < numComponents; compNdx++) in compareTransformFeedbackOutput() local 737 const deUint8* inPtr = inBasePtr + inStride*inNdx + attribute.offset + compNdx*sizeof(deUint32); in compareTransformFeedbackOutput() 738 const deUint8* outPtr = outBasePtr + outStride*outNdx + outOffset + compNdx*sizeof(deUint32); in compareTransformFeedbackOutput() 766 …"), output = " << outNdx << ", input = " << inNdx << ", component = " << compNdx << TestLog::EndMe… in compareTransformFeedbackOutput()
|
/external/deqp/framework/randomshaders/ |
D | rsgBinaryOps.cpp | 101 for (int compNdx = 0; compNdx < EXEC_VEC_WIDTH; compNdx++) in evaluate() local 102 dstComp.asFloat(compNdx) = deFloatAbs(srcComp.asFloat(compNdx)); in evaluate() 178 for (int compNdx = 0; compNdx < EXEC_VEC_WIDTH; compNdx++) in evaluate() local 179 …omponent(elemNdx).asFloat(compNdx) = ComputeValue()(a.component(elemNdx).asFloat(compNdx),b.compon… in evaluate() 191 for (int compNdx = 0; compNdx < EXEC_VEC_WIDTH; compNdx++) in evaluate() local 192 …mponent(elemNdx).asBool(compNdx) = EvaluateLessThan()(a.component(elemNdx).asFloat(compNdx),b.comp… in evaluate() 445 for (int compNdx = 0; compNdx < EXEC_VEC_WIDTH; compNdx++) in evaluate() local 446 …omponent(elemNdx).asFloat(compNdx) = EvaluateComp()(a.component(elemNdx).asFloat(compNdx), b.compo… in evaluate() 453 for (int compNdx = 0; compNdx < EXEC_VEC_WIDTH; compNdx++) in evaluate() local 454 …st.component(elemNdx).asInt(compNdx) = EvaluateComp()(a.component(elemNdx).asInt(compNdx), b.compo… in evaluate() [all …]
|
D | rsgExecutionContext.cpp | 156 for (int compNdx = 0; compNdx < EXEC_VEC_WIDTH; compNdx++) in assignMasked() local 158 if (mask.asBool(compNdx)) in assignMasked() 159 dstElem.asScalar(compNdx) = srcElem.asScalar(compNdx); in assignMasked()
|
D | rsgVariableValue.hpp | 97 …Access component (int compNdx) const { return ConstStridedValueAccess(getType().getElementTyp… in component() 130 …ccess component (int compNdx) { return StridedValueAccess(this->getType().getElementType(), t… in component() argument 208 ConstValueRangeAccess component (int compNdx) const; 223 inline ConstValueRangeAccess ConstValueRangeAccess::component (int compNdx) const in component() 225 return ConstValueRangeAccess(m_type->getElementType(), m_min + compNdx, m_max + compNdx); in component() 249 ValueRangeAccess component (int compNdx); 254 inline ValueRangeAccess ValueRangeAccess::component (int compNdx) in component() argument 256 return ValueRangeAccess(m_type->getElementType(), m_min + compNdx, m_max + compNdx); in component()
|
D | rsgBuiltinFunctions.hpp | 115 for (int compNdx = 0; compNdx < EXEC_VEC_WIDTH; compNdx++) in evaluate() local 116 dstComp.asFloat(compNdx) = Evaluate()(srcComp.asFloat(compNdx)); in evaluate()
|
D | rsgProgramExecutor.cpp | 160 void copyVarying (ValueAccess dst, ConstStridedValueAccess<Stride> src, int compNdx) in copyVarying() argument 164 dst.component(elemNdx).asFloat() = src.component(elemNdx).asFloat(compNdx); in copyVarying()
|
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassMultisampleTests.cpp | 1461 for (int compNdx = 0; compNdx < componentCount; compNdx++) in iterateInternal() local 1463 if (dstBitsUsed[compNdx] > bits[compNdx]) in iterateInternal() 1466 color[compNdx] += (range[compNdx] / divider) in iterateInternal() 1470 dstBitsUsed[compNdx]++; in iterateInternal() 1506 for (int compNdx = 0; compNdx < componentCount; compNdx++) in iterateInternal() local 1508 if (dstBitsUsed[compNdx] > bits[compNdx]) in iterateInternal() 1511 color[compNdx] += (range[compNdx] / divider) in iterateInternal() 1515 dstBitsUsed[compNdx]++; in iterateInternal() 1556 for (int compNdx = 0; compNdx < componentCount; compNdx++) in iterateInternal() local 1558 if (dstBitsUsed[compNdx] > bits[compNdx]) in iterateInternal() [all …]
|
D | vktRenderPassTests.cpp | 2892 for (int compNdx = 0; compNdx < 4; compNdx++) in clearReferenceValues() local 2894 if (mask[compNdx]) in clearReferenceValues() 2896 if (value.getValue(compNdx)) in clearReferenceValues() 2897 values[x + y * targetSize.x()].setValue(compNdx, *value.getValue(compNdx)); in clearReferenceValues() 2899 values[x + y * targetSize.x()].setUndefined(compNdx); in clearReferenceValues() 2916 for (int compNdx = 0; compNdx < 4; compNdx++) in markUndefined() local 2918 if (mask[compNdx]) in markUndefined() 2919 values[x + y * targetSize.x()].setUndefined(compNdx); in markUndefined() 3174 for (int compNdx = 0; compNdx < 4; compNdx++) in renderReferenceValues() local 3176 const size_t index = subpassNdx + attachmentIndex + compNdx; in renderReferenceValues() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/ |
D | vktYCbCrUtil.cpp | 1880 for (size_t compNdx = 0; compNdx < 4; compNdx++) in calculateBounds() local 1881 bounds[compNdx] |= highp.roundOut(dstColor[compNdx], false); in calculateBounds() 1901 for (size_t compNdx = 0; compNdx < 4; compNdx++) in calculateBounds() local 1902 bounds[compNdx] |= highp.roundOut(dstColor[compNdx], false); in calculateBounds() 1920 for (size_t compNdx = 0; compNdx < 4; compNdx++) in calculateBounds() local 1921 bounds[compNdx] |= highp.roundOut(dstColor[compNdx], false); in calculateBounds() 1954 for (size_t compNdx = 0; compNdx < 4; compNdx++) in calculateBounds() local 1955 bounds[compNdx] |= highp.roundOut(dstColor[compNdx], false); in calculateBounds() 1981 for (size_t compNdx = 0; compNdx < 4; compNdx++) in calculateBounds() local 1982 bounds[compNdx] |= highp.roundOut(dstColor[compNdx], false); in calculateBounds() [all …]
|
/external/deqp/framework/common/ |
D | tcuRandomValueIterator.hpp | 41 for (int compNdx = 0; compNdx < 4; compNdx++) in getRandomValue() local 42 data[vecNdx*4+compNdx] = ((const deUint8*)&rval)[compNdx]; in getRandomValue()
|
D | tcuTexLookupVerifier.cpp | 265 for (int compNdx = 0; compNdx < 4; compNdx++) in isLinearRangeValid() local 267 if (!prec.colorMask[compNdx]) in isLinearRangeValid() 271 const bool sMin0 = i0[compNdx] >= rMin[compNdx]; in isLinearRangeValid() 272 const bool sMin1 = i1[compNdx] >= rMin[compNdx]; in isLinearRangeValid() 273 const bool sMax0 = i0[compNdx] > rMax[compNdx]; in isLinearRangeValid() 274 const bool sMax1 = i1[compNdx] > rMax[compNdx]; in isLinearRangeValid()
|
/external/deqp/modules/glshared/ |
D | glsShaderPerformanceMeasurer.cpp | 92 for (int compNdx = 0; compNdx < numComponents; compNdx++) in generateVertices() local 93 …numComponents + compNdx] = triQuadInterpolate(xf, yf, tcu::Vec4(spec.p00[compNdx], spec.p01[compNd… in generateVertices()
|
D | glsRandomShaderCase.cpp | 186 for (int compNdx = 0; compNdx < numComponents; compNdx++) in init() local 188 float minVal = valueRange.getMin().component(compNdx).asFloat(); in init() 189 float maxVal = valueRange.getMax().component(compNdx).asFloat(); in init() 192 rsg::getVertexInterpolationCoords(xd, yd, xf, yf, compNdx); in init() 196 dst[compNdx] = minVal + f * (maxVal-minVal); in init()
|
D | glsLongStressCase.cpp | 1010 for (int compNdx = 0; compNdx < numComponents; compNdx++) in generateRandomAttribData() local 1011 …data[vtxNdx*numComponents + compNdx] = rnd.getFloat(attrSpec.minValue.f[compNdx], attrSpec.maxValu… in generateRandomAttribData() 1020 for (int compNdx = 0; compNdx < numComponents; compNdx++) in generateRandomAttribData() local 1021 …data[vtxNdx*numComponents + compNdx] = rnd.getInt(attrSpec.minValue.i[compNdx], attrSpec.maxValue.… in generateRandomAttribData()
|
/external/deqp/modules/internal/ |
D | ditFrameworkTests.cpp | 659 for (int compNdx = 0; compNdx < 4; compNdx++) in ConstantInterpolationTest() local 666 c.varying[compNdx] = v; in ConstantInterpolationTest()
|