/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 | 564 for (deUint8 compNdx = 0; compNdx < 3; ++compNdx) in TextureFilteringTestInstance() local 565 DE_ASSERT(m_imParams.size[compNdx] > 0); in TextureFilteringTestInstance() 699 for (deUint8 compNdx = 0; compNdx < 4; ++compNdx) in execute() local 701 coords.push_back(sampleArgs.coord[compNdx]); in execute() 702 dPdxs .push_back(sampleArgs.dPdx[compNdx]); in execute() 703 dPdys .push_back(sampleArgs.dPdy[compNdx]); in execute()
|
/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 | 363 for (int compNdx = 0; compNdx < numComponents; compNdx++) in operator <<() local 365 if (compNdx != 0) in operator <<() 370 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 371 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<() 372 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 373 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 505 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() local 507 const float in0 = ((const float*)inputs[0])[compNdx]; in compare() 508 const float out0 = ((const float*)outputs[0])[compNdx]; in compare() 514 …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 | 309 for (int compNdx = 0; compNdx < numComponents; compNdx++) in operator <<() local 311 if (compNdx != 0) in operator <<() 316 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 317 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<() 318 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 319 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 320 case glu::TYPE_DOUBLE: str << HexDouble(((const double*)varValue.value)[compNdx]); break; in operator <<() 527 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() local 529 const int in0 = ((const int*)inputs[0])[compNdx]; in compare() 530 const int out0 = ((const int*)outputs[0])[compNdx]; in compare() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderCommonFunctionTests.cpp | 288 for (int compNdx = 0; compNdx < numComponents; compNdx++) in operator <<() local 290 if (compNdx != 0) in operator <<() 295 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<() 296 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<() 297 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 298 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break; in operator <<() 430 for (int compNdx = 0; compNdx < scalarSize; compNdx++) in compare() local 432 const float in0 = ((const float*)inputs[0])[compNdx]; in compare() 433 const float out0 = ((const float*)outputs[0])[compNdx]; in compare() 439 …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/external/vulkancts/modules/vulkan/image/ |
D | vktImageLoadStoreUtil.cpp | 124 for (deUint32 compNdx = 0; compNdx < numChannels; compNdx++) in isRepresentableIntegerValue() local 126 if (deFloorToInt32(log2((double)value[compNdx]) + 1) > formatBitDepths[compNdx]) in isRepresentableIntegerValue() 135 for (deUint32 compNdx = 0; compNdx < numChannels; compNdx++) in isRepresentableIntegerValue() local 137 if ((deFloorToInt32(log2((double)deAbs64(value[compNdx])) + 1) + 1) > formatBitDepths[compNdx]) in isRepresentableIntegerValue()
|
/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()
|
/external/angle/src/tests/deqp_support/ |
D | tcuRandomOrderExecutor.cpp | 108 size_t compNdx; in seekToCase() local 112 for (compNdx = 0; compNdx < components.size(); compNdx++) in seekToCase() 114 const size_t stackPos = compNdx + 1; in seekToCase() 118 else if (components[compNdx] != m_nodeStack[stackPos].node->getName()) in seekToCase() 126 DE_ASSERT(m_nodeStack.size() == compNdx + 1); in seekToCase() 128 for (; compNdx < components.size(); compNdx++) in seekToCase() 130 const size_t parentStackPos = compNdx; in seekToCase() 132 findNodeByName(m_nodeStack[parentStackPos].children, components[compNdx]); in seekToCase() 150 else if (compNdx + 1 != components.size()) in seekToCase()
|
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassMultisampleTests.cpp | 1577 for (int compNdx = 0; compNdx < componentCount; compNdx++) in iterateInternal() local 1579 if (dstBitsUsed[compNdx] > bits[compNdx]) in iterateInternal() 1582 color[compNdx] += (range[compNdx] / divider) in iterateInternal() 1586 dstBitsUsed[compNdx]++; in iterateInternal() 1622 for (int compNdx = 0; compNdx < componentCount; compNdx++) in iterateInternal() local 1624 if (dstBitsUsed[compNdx] > bits[compNdx]) in iterateInternal() 1627 color[compNdx] += (range[compNdx] / divider) in iterateInternal() 1631 dstBitsUsed[compNdx]++; in iterateInternal() 1672 for (int compNdx = 0; compNdx < componentCount; compNdx++) in iterateInternal() local 1674 if (dstBitsUsed[compNdx] > bits[compNdx]) in iterateInternal() [all …]
|
D | vktRenderPassTests.cpp | 2955 for (int compNdx = 0; compNdx < 4; compNdx++) in clearReferenceValues() local 2957 if (mask[compNdx]) in clearReferenceValues() 2959 if (value.getValue(compNdx)) in clearReferenceValues() 2960 values[x + y * targetSize.x()].setValue(compNdx, *value.getValue(compNdx)); in clearReferenceValues() 2962 values[x + y * targetSize.x()].setUndefined(compNdx); in clearReferenceValues() 2979 for (int compNdx = 0; compNdx < 4; compNdx++) in markUndefined() local 2981 if (mask[compNdx]) in markUndefined() 2982 values[x + y * targetSize.x()].setUndefined(compNdx); in markUndefined() 3239 for (int compNdx = 0; compNdx < 4; compNdx++) in renderReferenceValues() local 3241 const size_t index = subpassNdx + attachmentIndex + compNdx; in renderReferenceValues() [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()
|
/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/external/vulkancts/modules/vulkan/ycbcr/ |
D | vktYCbCrUtil.cpp | 1759 for (size_t compNdx = 0; compNdx < 4; compNdx++) in calculateBounds() local 1760 bounds[compNdx] |= highp.roundOut(dstColor[compNdx], false); in calculateBounds() 1801 for (size_t compNdx = 0; compNdx < 4; compNdx++) in calculateBounds() local 1802 bounds[compNdx] |= highp.roundOut(dstColor[compNdx], false); in calculateBounds() 1873 for (size_t compNdx = 0; compNdx < 4; compNdx++) in calculateBounds() local 1874 bounds[compNdx] |= highp.roundOut(dstColor[compNdx], false); in calculateBounds() 1914 for (size_t compNdx = 0; compNdx < 4; compNdx++) in calculateBounds() local 1915 bounds[compNdx] |= highp.roundOut(dstColor[compNdx], false); in calculateBounds()
|
/external/deqp/external/vulkancts/modules/vulkan/transform_feedback/ |
D | vktTransformFeedbackFuzzLayoutCase.cpp | 481 for (int compNdx = 0; compNdx < vecSize; compNdx++) in createMask() local 483 const deUint8* compPtr = vecPtr + compSize*compNdx; in createMask() 924 for (int compNdx = 0; compNdx < vecSize; compNdx++) in generateValue() local 926 deUint8* compPtr = vecPtr + compSize*compNdx; in generateValue() 1816 for (int compNdx = 0; compNdx < vecSize; compNdx++) in validateValue() local 1818 const deUint8* compPtr = vecPtr + compSize*compNdx; in validateValue() 1870 …:toString(elemNdx) + " vecNdx=" + de::toString(vecNdx) + " compNdx=" + de::toString(compNdx) + ")"; in validateValue()
|
/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()
|