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()
1374 void writeVertexInputValueSint (deUint8* destPtr, VkFormat format, int componentNdx, deInt32 value) in writeVertexInputValueSint() argument
1377 deUint8* destFormatPtr = ((deUint8*)destPtr) + componentSize * componentNdx; in writeVertexInputValueSint()
1398 …2& packedFormat, deUint32& componentOffset, VkFormat format, deUint32 componentNdx, deUint32 value) in writeVertexInputValueIntPacked() argument
1400 const deUint32 componentWidth = getPackedVertexFormatComponentWidth(format, componentNdx); in writeVertexInputValueIntPacked()
1407 if (componentNdx == componentCount - 1) in writeVertexInputValueIntPacked()
1411 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.cpp1916 for (deUint32 componentNdx = 0u; componentNdx < m_renderColor.SIZE; ++componentNdx) in verifyImage() local
1918 …if (m_renderColor[componentNdx] != 0.0f && (resultPixel[componentNdx] <= m_renderColor[componentNd… in verifyImage()
1919 … || 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.hpp467 …Access& src, const Sampler& sampler, float s, float t, int depth, int componentNdx, const IVec2 (&…
573 …Vec4 gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, const IVec2…
608 …e2DView::gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, const IVec2 (&… in gatherOffsets() argument
610 return gatherArray2DOffsets(m_levels[0], sampler, s, t, 0, componentNdx, offsets); in gatherOffsets()
730 …Vec4 gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, const IVec2…
769 inline Vec4 Texture2D::gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, c… in gatherOffsets() argument
771 return m_view.gatherOffsets(sampler, s, t, componentNdx, offsets); in gatherOffsets()
796 Vec4 gather (const Sampler& sampler, float s, float t, float r, int componentNdx) const;
828 Vec4 gather (const Sampler& sampler, float s, float t, float r, int componentNdx) const;
855 …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.cpp2377 …Access& src, const Sampler& sampler, float s, float t, int depth, int componentNdx, const IVec2 (&… in fetchGatherArray2DOffsets() argument
2379 DE_ASSERT(de::inBounds(componentNdx, 0, 4)); in fetchGatherArray2DOffsets()
2401 result[i] = pixel[componentNdx]; in fetchGatherArray2DOffsets()
2407 …Access& src, const Sampler& sampler, float s, float t, int depth, int componentNdx, const IVec2 (&… in gatherArray2DOffsets() argument
2410 DE_ASSERT(de::inBounds(componentNdx, 0, 4)); in gatherArray2DOffsets()
2412 return fetchGatherArray2DOffsets(src, sampler, s, t, depth, componentNdx, offsets); in gatherArray2DOffsets()
3317 Vec4 TextureCubeView::gather (const Sampler& sampler, float s, float t, float r, int componentNdx) … in gather()
3343 result[i] = sampleColors[sampleIndices[i]][componentNdx]; in gather()
3542 …gatherOffsets (const Sampler& sampler, float s, float t, float r, int componentNdx, const IVec2 (&… in gatherOffsets() argument
3544 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.cpp10800 const deUint32 componentNdx = inputIndices[idx]; in compareFP16VectorExtractFunc() local
10802 DE_ASSERT(componentNdx < components); in compareFP16VectorExtractFunc()
10804 const deFloat16 expected = input1AsFP16[components * idx + componentNdx]; in compareFP16VectorExtractFunc()
11238 inline deFloat16 getShuffledComponent (const size_t iteration, const size_t componentNdx, const deF… in getShuffledComponent() argument
11244 switch (componentNdx) in getShuffledComponent()
13834 for (size_t componentNdx = 0; componentNdx < getArgCompCount(0); ++componentNdx) in calc() local
13836 const fp16type x (in[0][componentNdx]); in calc()
13850 for (size_t componentNdx = 0; componentNdx < getArgCompCount(0); ++componentNdx) in calc() local
13852 const fp16type x (in[0][componentNdx]); in calc()
13902 for (size_t componentNdx = 0; componentNdx < getArgCompCount(0); ++componentNdx) in calc() local
[all …]
DvktSpvAsmTypeTests.cpp1646 for (deUint32 componentNdx = 0u; componentNdx < m_vectorSize; componentNdx++) in createConstantDeclaration() local
1647 …nt_" + de::toString(getConstituentIndex(compositeNdx * m_vectorSize + componentNdx, m_vectorSize)); in createConstantDeclaration()
1672 for (deUint32 componentNdx = 0u; componentNdx < m_vectorSize; componentNdx++) in createConstantDeclaration() local
1673 …nt_" + de::toString(getConstituentIndex(compositeNdx * m_vectorSize + componentNdx, m_vectorSize)); in createConstantDeclaration()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderTextureGatherTests.cpp553 …e2DView& texture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument
555 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), componentNdx, offsets).cast<ColorScala… in gatherOffsets()
559 …rayView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument
561 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), coord.z(), componentNdx, offsets).cast… in gatherOffsets()
565 …ubeView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument
569 …return texture.gather(sampler, coord.x(), coord.y(), coord.z(), componentNdx).cast<ColorScalarType… in gatherOffsets()
594 int componentNdx, in isGatherOffsetsResultValid() argument
600 return tcu::isGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherOffsetsResultValid()
623 int componentNdx, in verifyGatherOffsets() argument
646 …Vec idealPix = gatherOffsets<ColorScalarType>(texture, sampler, texCoord, componentNdx, offsets); in verifyGatherOffsets()
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkImageUtil.hpp70 float getRepresentableDiffUnorm (const VkFormat format, const deUint32 componentNdx);
71 float getRepresentableDiffSnorm (const VkFormat format, const deUint32 componentNdx);
72 deUint32 getFormatComponentWidth (const VkFormat format, const deUint32 componentNdx);
DvkImageUtil.cpp2310 deUint32 getFormatComponentWidth (const VkFormat format, const deUint32 componentNdx) in getFormatComponentWidth() argument
2315 if (componentNdx >= componentCount) in getFormatComponentWidth()
2356 return (componentNdx == 1 ? 6 : 5); in getFormatComponentWidth()
2361 return (componentNdx == 0 ? 24 : 8); in getFormatComponentWidth()
2364 return (componentNdx == 0 ? 1 : 5); in getFormatComponentWidth()
2370 return (componentNdx == 3 ? 2 : 10); in getFormatComponentWidth()
2380 float getRepresentableDiffUnorm (const VkFormat format, const deUint32 componentNdx) in getRepresentableDiffUnorm() argument
2382 const deUint32 size (getFormatComponentWidth(format, componentNdx)); in getRepresentableDiffUnorm()
2387 float getRepresentableDiffSnorm (const VkFormat format, const deUint32 componentNdx) in getRepresentableDiffSnorm() argument
2389 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
925 for (int componentNdx = 0; componentNdx < buffer.componentCount; componentNdx++) in createRandomBufferData() local