Home
last modified time | relevance | path

Searched refs:componentNdx (Results 1 – 21 of 21) sorted by relevance

/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineVertexUtil.cpp405 deUint32 getPackedVertexFormatComponentWidth(VkFormat format, deUint32 componentNdx) in getPackedVertexFormatComponentWidth() argument
411 DE_ASSERT(componentNdx < 2); in getPackedVertexFormatComponentWidth()
419 DE_ASSERT(componentNdx < 3); in getPackedVertexFormatComponentWidth()
420 return componentSizes[componentNdx]; in getPackedVertexFormatComponentWidth()
425 DE_ASSERT(componentNdx < 4); in getPackedVertexFormatComponentWidth()
433 DE_ASSERT(componentNdx < 4); in getPackedVertexFormatComponentWidth()
434 return componentSizes[componentNdx]; in getPackedVertexFormatComponentWidth()
440 DE_ASSERT(componentNdx < 4); in getPackedVertexFormatComponentWidth()
441 return componentSizes[componentNdx]; in getPackedVertexFormatComponentWidth()
451 DE_ASSERT(componentNdx < 4); in getPackedVertexFormatComponentWidth()
[all …]
DvktPipelineVertexInputTests.cpp82 float getRepresentableDifferenceUnormPacked(VkFormat format, deUint32 componentNdx) in getRepresentableDifferenceUnormPacked() argument
86 return 1.0f / float((1 << (getPackedVertexFormatComponentWidth(format, componentNdx))) - 1); in getRepresentableDifferenceUnormPacked()
96 float getRepresentableDifferenceSnormPacked(VkFormat format, deUint32 componentNdx) in getRepresentableDifferenceSnormPacked() argument
100 return 1.0f / float((1 << (getPackedVertexFormatComponentWidth(format, componentNdx) - 1)) - 1); in getRepresentableDifferenceSnormPacked()
1377 void writeVertexInputValueSint (deUint8* destPtr, VkFormat format, int componentNdx, deInt32 value) in writeVertexInputValueSint() argument
1380 deUint8* destFormatPtr = ((deUint8*)destPtr) + componentSize * componentNdx; in writeVertexInputValueSint()
1401 …2& packedFormat, deUint32& componentOffset, VkFormat format, deUint32 componentNdx, deUint32 value) in writeVertexInputValueIntPacked() argument
1403 const deUint32 componentWidth = getPackedVertexFormatComponentWidth(format, componentNdx); in writeVertexInputValueIntPacked()
1410 if (componentNdx == componentCount - 1) in writeVertexInputValueIntPacked()
1414 void writeVertexInputValueUint (deUint8* destPtr, VkFormat format, int componentNdx, deUint32 value) in writeVertexInputValueUint() argument
[all …]
DvktPipelineVertexUtil.hpp53 deUint32 getPackedVertexFormatComponentWidth (vk::VkFormat format, deUint32 componentNdx);
DvktPipelinePushConstantTests.cpp979 for (deUint32 componentNdx = 0u; componentNdx < numComponents; componentNdx++) in setReferenceColor() local
980 expectedColor[componentNdx] += m_referenceData[colorNdx + componentNdx]; in setReferenceColor()
DvktPipelineMultisampleTests.cpp2354 for (deUint32 componentNdx = 0u; componentNdx < m_renderColor.SIZE; ++componentNdx) in verifyImage() local
2356 …if (m_renderColor[componentNdx] != 0.0f && (resultPixel[componentNdx] <= m_renderColor[componentNd… in verifyImage()
2357 … || resultPixel[componentNdx] >= m_renderColor[componentNdx] * (maxCoverage + threshold))) in verifyImage()
/external/deqp/framework/common/
DtcuTexLookupVerifier.hpp135 …ampler& sampler, const LookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&…
136 …pler& sampler, const IntLookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&…
137 …pler& sampler, const IntLookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&…
139 …ampler& sampler, const LookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&…
140 …pler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&…
141 …pler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&…
144 …ampler& sampler, const LookupPrecision& prec, const Vec3& coord, int componentNdx, const Vec4& re…
145 …pler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec4& r…
146 …pler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const UVec4& r…
DtcuTexture.hpp480 …Access& src, const Sampler& sampler, float s, float t, int depth, int componentNdx, const IVec2 (&…
586 …Vec4 gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, const IVec2…
621 …e2DView::gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, const IVec2 (&… in gatherOffsets() argument
623 return gatherArray2DOffsets(m_levels[0], sampler, s, t, 0, componentNdx, offsets); in gatherOffsets()
743 …Vec4 gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, const IVec2…
782 inline Vec4 Texture2D::gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, c… in gatherOffsets() argument
784 return m_view.gatherOffsets(sampler, s, t, componentNdx, offsets); in gatherOffsets()
809 Vec4 gather (const Sampler& sampler, float s, float t, float r, int componentNdx) const;
841 Vec4 gather (const Sampler& sampler, float s, float t, float r, int componentNdx) const;
868 …ec4 TextureCube::gather (const Sampler& sampler, float s, float t, float r, int componentNdx) const in gather()
[all …]
DtcuTexLookupVerifier.cpp2437 int componentNdx, in isGatherOffsetsResultValid() argument
2463 color[offNdx] = lookup<ScalarType>(level, sampler, x, y, coordZ)[componentNdx]; in isGatherOffsetsResultValid()
2478 int componentNdx, in isGatherOffsetsResultValid() argument
2482 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid()
2489 int componentNdx, in isGatherOffsetsResultValid() argument
2493 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid()
2500 int componentNdx, in isGatherOffsetsResultValid() argument
2504 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid()
2512 int componentNdx, in is2DArrayGatherOffsetsResultValid() argument
2519 …tValid(texture.getLevel(0), sampler, prec, coord.swizzle(0,1), layer, componentNdx, offsets, resul… in is2DArrayGatherOffsetsResultValid()
[all …]
DtcuTexture.cpp2440 …Access& src, const Sampler& sampler, float s, float t, int depth, int componentNdx, const IVec2 (&… in fetchGatherArray2DOffsets() argument
2442 DE_ASSERT(de::inBounds(componentNdx, 0, 4)); in fetchGatherArray2DOffsets()
2464 result[i] = pixel[componentNdx]; in fetchGatherArray2DOffsets()
2470 …Access& src, const Sampler& sampler, float s, float t, int depth, int componentNdx, const IVec2 (&… in gatherArray2DOffsets() argument
2473 DE_ASSERT(de::inBounds(componentNdx, 0, 4)); in gatherArray2DOffsets()
2475 return fetchGatherArray2DOffsets(src, sampler, s, t, depth, componentNdx, offsets); in gatherArray2DOffsets()
3380 Vec4 TextureCubeView::gather (const Sampler& sampler, float s, float t, float r, int componentNdx) … in gather()
3406 result[i] = sampleColors[sampleIndices[i]][componentNdx]; in gather()
3605 …gatherOffsets (const Sampler& sampler, float s, float t, float r, int componentNdx, const IVec2 (&… in gatherOffsets() argument
3607 return gatherArray2DOffsets(m_levels[0], sampler, s, t, selectLayer(r), componentNdx, offsets); in gatherOffsets()
DtcuRasterizationVerifier.cpp866 float calculateIntersectionParameter (const tcu::Vec2 line[2], float w, int componentNdx) in calculateIntersectionParameter() argument
868 DE_ASSERT(componentNdx < 2); in calculateIntersectionParameter()
869 if (line[1][componentNdx] == line[0][componentNdx]) in calculateIntersectionParameter()
872 return (w - line[0][componentNdx]) / (line[1][componentNdx] - line[0][componentNdx]); in calculateIntersectionParameter()
/external/deqp/modules/gles31/functional/
Des31fTextureGatherTests.cpp524 …e2DView& texture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument
526 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), componentNdx, offsets).cast<ColorScala… in gatherOffsets()
530 …rayView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument
532 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), coord.z(), componentNdx, offsets).cast… in gatherOffsets()
536 …ubeView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument
540 …return texture.gather(sampler, coord.x(), coord.y(), coord.z(), componentNdx).cast<ColorScalarType… in gatherOffsets()
565 int componentNdx, in isGatherOffsetsResultValid() argument
571 return tcu::isGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherOffsetsResultValid()
594 int componentNdx, in verifyGatherOffsets() argument
617 …Vec idealPix = gatherOffsets<ColorScalarType>(texture, sampler, texCoord, componentNdx, offsets); in verifyGatherOffsets()
[all …]
Des31fPrimitiveBoundingBoxTests.cpp1464 …lBufferAccess& access, const tcu::IVec4& area, int& floodCounter, int componentNdx, const tcu::IVe…
1465 …erAccess& access, const tcu::IVec2& begin, const tcu::IVec2& end, int componentNdx, int& messageLi…
1466 …tcu::IVec2 getNumMinimaMaxima (const tcu::ConstPixelBufferAccess& access, int componentNdx) c…
1467 …erAccess& access, const tcu::IVec2& begin, const tcu::IVec2& end, int componentNdx, int& floodCoun…
2111 …Access& access, const tcu::IVec4& area, int& messageLimitCounter, int componentNdx, const tcu::IVe… in checkAreaNumLines() argument
2115 const tcu::IVec2 numMinimaMaxima = getNumMinimaMaxima(subAccess, componentNdx); in checkAreaNumLines()
2141 …eRenderCase::getNumMinimaMaxima (const tcu::ConstPixelBufferAccess& access, int componentNdx) const in getNumMinimaMaxima()
2153 const int componentValue = access.getPixelInt(x, y)[componentNdx]; in getNumMinimaMaxima()
2198 …erAccess& access, const tcu::IVec2& begin, const tcu::IVec2& end, int componentNdx, int& messageLi… in checkLineContinuity() argument
2208 const bool hit = (access.getPixelInt(cursor.x(), cursor.y())[componentNdx] != 0); in checkLineContinuity()
[all …]
Des31fSeparateShaderTests.cpp468 for (int componentNdx = 0; componentNdx < NUM_COMPONENTS; ++componentNdx) in genVtxShaderSrc() local
470 printFloat(oss, s_quadrants[vertexNdx][componentNdx] * rnd.getInt(4,16) / 16.0); in genVtxShaderSrc()
471 oss << (componentNdx < 1 ? ", " : ""); in genVtxShaderSrc()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp11484 const deUint32 componentNdx = inputIndices[idx]; in compareFP16VectorExtractFunc() local
11486 DE_ASSERT(componentNdx < components); in compareFP16VectorExtractFunc()
11488 const deFloat16 expected = input1AsFP16[components * idx + componentNdx]; in compareFP16VectorExtractFunc()
11967 inline deFloat16 getShuffledComponent (const size_t iteration, const size_t componentNdx, const deF… in getShuffledComponent() argument
11973 switch (componentNdx) in getShuffledComponent()
15356 for (size_t componentNdx = 0; componentNdx < getArgCompCount(0); ++componentNdx) in calc() local
15358 const fp16type x (in[0][componentNdx]); in calc()
15372 for (size_t componentNdx = 0; componentNdx < getArgCompCount(0); ++componentNdx) in calc() local
15374 const fp16type x (in[0][componentNdx]); in calc()
15424 for (size_t componentNdx = 0; componentNdx < getArgCompCount(0); ++componentNdx) in calc() local
[all …]
DvktSpvAsmTypeTests.cpp1782 for (deUint32 componentNdx = 0u; componentNdx < m_vectorSize; componentNdx++) in createConstantDeclaration() local
1783 …nt_" + de::toString(getConstituentIndex(compositeNdx * m_vectorSize + componentNdx, m_vectorSize)); in createConstantDeclaration()
1808 for (deUint32 componentNdx = 0u; componentNdx < m_vectorSize; componentNdx++) in createConstantDeclaration() local
1809 …nt_" + de::toString(getConstituentIndex(compositeNdx * m_vectorSize + componentNdx, m_vectorSize)); in createConstantDeclaration()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderTextureGatherTests.cpp552 …e2DView& texture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument
554 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), componentNdx, offsets).cast<ColorScala… in gatherOffsets()
558 …rayView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument
560 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), coord.z(), componentNdx, offsets).cast… in gatherOffsets()
564 …ubeView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument
568 …return texture.gather(sampler, coord.x(), coord.y(), coord.z(), componentNdx).cast<ColorScalarType… in gatherOffsets()
593 int componentNdx, in isGatherOffsetsResultValid() argument
599 return tcu::isGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherOffsetsResultValid()
622 int componentNdx, in verifyGatherOffsets() argument
645 …Vec idealPix = gatherOffsets<ColorScalarType>(texture, sampler, texCoord, componentNdx, offsets); in verifyGatherOffsets()
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkImageUtil.hpp73 float getRepresentableDiffUnorm (const VkFormat format, const deUint32 componentNdx);
74 float getRepresentableDiffSnorm (const VkFormat format, const deUint32 componentNdx);
75 deUint32 getFormatComponentWidth (const VkFormat format, const deUint32 componentNdx);
DvkImageUtil.cpp3279 deUint32 getFormatComponentWidth (const VkFormat format, const deUint32 componentNdx) in getFormatComponentWidth() argument
3284 if (componentNdx >= componentCount) in getFormatComponentWidth()
3325 return (componentNdx == 1 ? 6 : 5); in getFormatComponentWidth()
3330 return (componentNdx == 0 ? 24 : 8); in getFormatComponentWidth()
3333 return (componentNdx == 0 ? 1 : 5); in getFormatComponentWidth()
3339 return (componentNdx == 3 ? 2 : 10); in getFormatComponentWidth()
3349 float getRepresentableDiffUnorm (const VkFormat format, const deUint32 componentNdx) in getRepresentableDiffUnorm() argument
3351 const deUint32 size (getFormatComponentWidth(format, componentNdx)); in getRepresentableDiffUnorm()
3356 float getRepresentableDiffSnorm (const VkFormat format, const deUint32 componentNdx) in getRepresentableDiffSnorm() argument
3358 const deUint32 size (getFormatComponentWidth(format, componentNdx)); in getRepresentableDiffSnorm()
/external/deqp/modules/glshared/
DglsVertexArrayTests.cpp1407 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in generateArray() local
1409 …setData(&(data[vertexNdx * stride + Array::inputTypeSize(type) * componentNdx]), type, rnd, min, m… in generateArray()
1746 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in createPerQuads() local
1750 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 0 + componentStride * componentNdx, val); in createPerQuads()
1751 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 1 + componentStride * componentNdx, val); in createPerQuads()
1752 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 2 + componentStride * componentNdx, val); in createPerQuads()
1753 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 3 + componentStride * componentNdx, val); in createPerQuads()
1754 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 4 + componentStride * componentNdx, val); in createPerQuads()
1755 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 5 + componentStride * componentNdx, val); in createPerQuads()
DglsDrawTest.cpp1591 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in createBasicArray() local
1593 components[componentNdx] = getRandom<GLType>(rnd, min, max); in createBasicArray()
1596 …if (vertexNdx != 0 && abs(components[componentNdx] - previousComponents[componentNdx]) < minValue<… in createBasicArray()
1599 components[componentNdx] = getRandom<GLType>(rnd, min, max); in createBasicArray()
1603 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in createBasicArray() local
1604 previousComponents[componentNdx] = components[componentNdx]; in createBasicArray()
1606 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in createBasicArray() local
1607 …alignmentSafeAssignment(writePtr + componentNdx*componentSize, components[componentNdx].getValue()… in createBasicArray()
/external/deqp/modules/gles3/functional/
Des3fVertexArrayObjectTests.cpp349 for (int componentNdx = 0; componentNdx < buffer.componentCount; componentNdx++) in createRandomBufferData() local
933 for (int componentNdx = 0; componentNdx < buffer.componentCount; componentNdx++) in createRandomBufferData() local