/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineVertexUtil.cpp | 405 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() 427 DE_ASSERT(componentNdx < 4); in getPackedVertexFormatComponentWidth() 435 DE_ASSERT(componentNdx < 4); in getPackedVertexFormatComponentWidth() 436 return componentSizes[componentNdx]; in getPackedVertexFormatComponentWidth() 442 DE_ASSERT(componentNdx < 4); in getPackedVertexFormatComponentWidth() 443 return componentSizes[componentNdx]; in getPackedVertexFormatComponentWidth() 453 DE_ASSERT(componentNdx < 4); in getPackedVertexFormatComponentWidth() [all …]
|
D | vktPipelineVertexInputTests.cpp | 82 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() 1402 void writeVertexInputValueSint (deUint8* destPtr, VkFormat format, int componentNdx, deInt32 value) in writeVertexInputValueSint() argument 1405 deUint8* destFormatPtr = ((deUint8*)destPtr) + componentSize * componentNdx; in writeVertexInputValueSint() 1426 …2& packedFormat, deUint32& componentOffset, VkFormat format, deUint32 componentNdx, deUint32 value) in writeVertexInputValueIntPacked() argument 1428 const deUint32 componentWidth = getPackedVertexFormatComponentWidth(format, componentNdx); in writeVertexInputValueIntPacked() 1435 if (componentNdx == componentCount - 1) in writeVertexInputValueIntPacked() 1439 void writeVertexInputValueUint (deUint8* destPtr, VkFormat format, int componentNdx, deUint32 value) in writeVertexInputValueUint() argument [all …]
|
D | vktPipelineMultisampleTests.cpp | 2917 for (deUint32 componentNdx = 0u; componentNdx < m_renderColor.SIZE; ++componentNdx) in verifyImage() local 2919 …if ((renderColorHalfOpacity[componentNdx] != 0.0f && resultPixel[componentNdx] <= (renderColorHalf… in verifyImage() 2920 || resultPixel[componentNdx] >= (renderColorHalfOpacity[componentNdx] + threshold)) in verifyImage() 3102 for (deUint32 componentNdx = 0u; componentNdx < m_renderColor.SIZE; ++componentNdx) in verifyImage() local 3104 …if (m_renderColor[componentNdx] != 0.0f && (resultPixel[componentNdx] <= expectedPixel[componentNd… in verifyImage() 3105 || resultPixel[componentNdx] >= expectedPixel[componentNdx] * (1.0f + threshold))) in verifyImage() 3132 for (deUint32 componentNdx = 0u; componentNdx < m_renderColor.SIZE; ++componentNdx) in verifyImage() local 3134 …if (m_renderColor[componentNdx] != 0.0f && (resultPixel[componentNdx] <= m_renderColor[componentNd… in verifyImage() 3135 … || resultPixel[componentNdx] >= m_renderColor[componentNdx] * (maxCoverage + threshold))) in verifyImage()
|
D | vktPipelineVertexUtil.hpp | 60 deUint32 getPackedVertexFormatComponentWidth (vk::VkFormat format, deUint32 componentNdx);
|
D | vktPipelinePushConstantTests.cpp | 1006 for (deUint32 componentNdx = 0u; componentNdx < numComponents; componentNdx++) in setReferenceColor() local 1007 expectedColor[componentNdx] += m_referenceData[colorNdx + componentNdx]; in setReferenceColor()
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuTexLookupVerifier.hpp | 136 …ampler& sampler, const LookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&… 137 …pler& sampler, const IntLookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&… 138 …pler& sampler, const IntLookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&… 140 …ampler& sampler, const LookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&… 141 …pler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&… 142 …pler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&… 145 …ampler& sampler, const LookupPrecision& prec, const Vec3& coord, int componentNdx, const Vec4& re… 146 …pler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec4& r… 147 …pler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const UVec4& r…
|
D | tcuTexture.hpp | 486 …Access& src, const Sampler& sampler, float s, float t, int depth, int componentNdx, const IVec2 (&… 543 …Vec4 gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, const IVec2… 580 …e2DView::gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, const IVec2 (&… in gatherOffsets() argument 582 return gatherArray2DOffsets(m_levels[0], sampler, s, t, 0, componentNdx, offsets); in gatherOffsets() 646 …Vec4 gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, const IVec2 (… 686 inline Vec4 Texture2D::gatherOffsets (const Sampler& sampler, float s, float t, int componentNdx, c… in gatherOffsets() argument 688 return m_view.gatherOffsets(sampler, s, t, componentNdx, offsets); in gatherOffsets() 714 Vec4 gather (const Sampler& sampler, float s, float t, float r, int componentNdx) const; 748 Vec4 gather (const Sampler& sampler, float s, float t, float r, int componentNdx) const; 775 …ec4 TextureCube::gather (const Sampler& sampler, float s, float t, float r, int componentNdx) const in gather() [all …]
|
D | tcuTexLookupVerifier.cpp | 2442 int componentNdx, in isGatherOffsetsResultValid() argument 2468 color[offNdx] = lookup<ScalarType>(level, sampler, x, y, coordZ)[componentNdx]; in isGatherOffsetsResultValid() 2483 int componentNdx, in isGatherOffsetsResultValid() argument 2487 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid() 2494 int componentNdx, in isGatherOffsetsResultValid() argument 2498 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid() 2505 int componentNdx, in isGatherOffsetsResultValid() argument 2509 …return isGatherOffsetsResultValid(texture.getLevel(0), sampler, prec, coord, 0, componentNdx, offs… in isGatherOffsetsResultValid() 2517 int componentNdx, in is2DArrayGatherOffsetsResultValid() argument 2524 …tValid(texture.getLevel(0), sampler, prec, coord.swizzle(0,1), layer, componentNdx, offsets, resul… in is2DArrayGatherOffsetsResultValid() [all …]
|
D | tcuTexture.cpp | 2721 …Access& src, const Sampler& sampler, float s, float t, int depth, int componentNdx, const IVec2 (&… in fetchGatherArray2DOffsets() argument 2723 DE_ASSERT(de::inBounds(componentNdx, 0, 4)); in fetchGatherArray2DOffsets() 2745 result[i] = pixel[componentNdx]; in fetchGatherArray2DOffsets() 2751 …Access& src, const Sampler& sampler, float s, float t, int depth, int componentNdx, const IVec2 (&… in gatherArray2DOffsets() argument 2754 DE_ASSERT(de::inBounds(componentNdx, 0, 4)); in gatherArray2DOffsets() 2756 return fetchGatherArray2DOffsets(src, sampler, s, t, depth, componentNdx, offsets); in gatherArray2DOffsets() 3670 Vec4 TextureCubeView::gather (const Sampler& sampler, float s, float t, float r, int componentNdx) … in gather() 3696 result[i] = sampleColors[sampleIndices[i]][componentNdx]; in gather() 3895 …gatherOffsets (const Sampler& sampler, float s, float t, float r, int componentNdx, const IVec2 (&… in gatherOffsets() argument 3897 return gatherArray2DOffsets(m_levels[0], sampler, s, t, selectLayer(r), componentNdx, offsets); in gatherOffsets()
|
D | tcuRasterizationVerifier.cpp | 866 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()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fTextureGatherTests.cpp | 525 …e2DView& texture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument 527 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), componentNdx, offsets).cast<ColorScala… in gatherOffsets() 531 …rayView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument 533 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), coord.z(), componentNdx, offsets).cast… in gatherOffsets() 537 …ubeView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument 541 …return texture.gather(sampler, coord.x(), coord.y(), coord.z(), componentNdx).cast<ColorScalarType… in gatherOffsets() 566 int componentNdx, in isGatherOffsetsResultValid() argument 572 return tcu::isGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherOffsetsResultValid() 595 int componentNdx, in verifyGatherOffsets() argument 618 …Vec idealPix = gatherOffsets<ColorScalarType>(texture, sampler, texCoord, componentNdx, offsets); in verifyGatherOffsets() [all …]
|
D | es31fPrimitiveBoundingBoxTests.cpp | 1539 …lBufferAccess& access, const tcu::IVec4& area, int& floodCounter, int componentNdx, const tcu::IVe… 1540 …erAccess& access, const tcu::IVec2& begin, const tcu::IVec2& end, int componentNdx, int& messageLi… 1541 …tcu::IVec2 getNumMinimaMaxima (const tcu::ConstPixelBufferAccess& access, int componentNdx) c… 1542 …erAccess& access, const tcu::IVec2& begin, const tcu::IVec2& end, int componentNdx, int& floodCoun… 2187 …Access& access, const tcu::IVec4& area, int& messageLimitCounter, int componentNdx, const tcu::IVe… in checkAreaNumLines() argument 2191 const tcu::IVec2 numMinimaMaxima = getNumMinimaMaxima(subAccess, componentNdx); in checkAreaNumLines() 2217 …eRenderCase::getNumMinimaMaxima (const tcu::ConstPixelBufferAccess& access, int componentNdx) const in getNumMinimaMaxima() 2229 const int componentValue = access.getPixelInt(x, y)[componentNdx]; in getNumMinimaMaxima() 2274 …erAccess& access, const tcu::IVec2& begin, const tcu::IVec2& end, int componentNdx, int& messageLi… in checkLineContinuity() argument 2284 const bool hit = (access.getPixelInt(cursor.x(), cursor.y())[componentNdx] != 0); in checkLineContinuity() [all …]
|
D | es31fSeparateShaderTests.cpp | 468 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()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmInstructionTests.cpp | 11948 const deUint32 componentNdx = inputIndices[idx]; in compareFP16VectorExtractFunc() local 11950 DE_ASSERT(componentNdx < components); in compareFP16VectorExtractFunc() 11952 const deFloat16 expected = input1AsFP16[components * idx + componentNdx]; in compareFP16VectorExtractFunc() 12431 inline deFloat16 getShuffledComponent (const size_t iteration, const size_t componentNdx, const deF… in getShuffledComponent() argument 12437 switch (componentNdx) in getShuffledComponent() 15820 for (size_t componentNdx = 0; componentNdx < getArgCompCount(0); ++componentNdx) in calc() local 15822 const fp16type x (in[0][componentNdx]); in calc() 15836 for (size_t componentNdx = 0; componentNdx < getArgCompCount(0); ++componentNdx) in calc() local 15838 const fp16type x (in[0][componentNdx]); in calc() 15888 for (size_t componentNdx = 0; componentNdx < getArgCompCount(0); ++componentNdx) in calc() local [all …]
|
D | vktSpvAsmTypeTests.cpp | 1786 for (deUint32 componentNdx = 0u; componentNdx < m_vectorSize; componentNdx++) in createConstantDeclaration() local 1787 …nt_" + de::toString(getConstituentIndex(compositeNdx * m_vectorSize + componentNdx, m_vectorSize)); in createConstantDeclaration() 1812 for (deUint32 componentNdx = 0u; componentNdx < m_vectorSize; componentNdx++) in createConstantDeclaration() local 1813 …nt_" + de::toString(getConstituentIndex(compositeNdx * m_vectorSize + componentNdx, m_vectorSize)); in createConstantDeclaration()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderTextureGatherTests.cpp | 556 …e2DView& texture, const tcu::Sampler& sampler, const Vec2& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument 558 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), componentNdx, offsets).cast<ColorScala… in gatherOffsets() 562 …rayView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument 564 …return texture.gatherOffsets(sampler, coord.x(), coord.y(), coord.z(), componentNdx, offsets).cast… in gatherOffsets() 568 …ubeView& texture, const tcu::Sampler& sampler, const Vec3& coord, int componentNdx, const IVec2 (&… in gatherOffsets() argument 572 …return texture.gather(sampler, coord.x(), coord.y(), coord.z(), componentNdx).cast<ColorScalarType… in gatherOffsets() 597 int componentNdx, in isGatherOffsetsResultValid() argument 603 return tcu::isGatherResultValid(texture, sampler, prec, coord, componentNdx, result); in isGatherOffsetsResultValid() 626 int componentNdx, in verifyGatherOffsets() argument 649 …Vec idealPix = gatherOffsets<ColorScalarType>(texture, sampler, texCoord, componentNdx, offsets); in verifyGatherOffsets() [all …]
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsVertexArrayTests.cpp | 1332 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in generateArray() local 1334 …setData(&(data[vertexNdx * stride + Array::inputTypeSize(type) * componentNdx]), type, rnd, min, m… in generateArray() 1664 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in createPerQuads() local 1668 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 0 + componentStride * componentNdx, val); in createPerQuads() 1669 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 1 + componentStride * componentNdx, val); in createPerQuads() 1670 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 2 + componentStride * componentNdx, val); in createPerQuads() 1671 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 3 + componentStride * componentNdx, val); in createPerQuads() 1672 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 4 + componentStride * componentNdx, val); in createPerQuads() 1673 …tSafeAssignment<T>(data + quadNdx * quadStride + stride * 5 + componentStride * componentNdx, val); in createPerQuads()
|
D | glsDrawTest.cpp | 1579 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in createBasicArray() local 1581 components[componentNdx] = getRandom<GLType>(rnd, min, max); in createBasicArray() 1584 …if (vertexNdx != 0 && abs(components[componentNdx] - previousComponents[componentNdx]) < minValue<… in createBasicArray() 1587 components[componentNdx] = getRandom<GLType>(rnd, min, max); in createBasicArray() 1591 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in createBasicArray() local 1592 previousComponents[componentNdx] = components[componentNdx]; in createBasicArray() 1594 for (int componentNdx = 0; componentNdx < componentCount; componentNdx++) in createBasicArray() local 1595 …alignmentSafeAssignment(writePtr + componentNdx*componentSize, components[componentNdx].getValue()… in createBasicArray()
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
D | vkImageUtil.hpp | 77 float getRepresentableDiffUnorm (const VkFormat format, const deUint32 componentNdx); 78 float getRepresentableDiffSnorm (const VkFormat format, const deUint32 componentNdx); 79 deUint32 getFormatComponentWidth (const VkFormat format, const deUint32 componentNdx);
|
D | vkImageUtil.cpp | 3587 deUint32 getFormatComponentWidth (const VkFormat format, const deUint32 componentNdx) in getFormatComponentWidth() argument 3592 if (componentNdx >= componentCount) in getFormatComponentWidth() 3639 return (componentNdx == 1 ? 6 : 5); in getFormatComponentWidth() 3644 return (componentNdx == 0 ? 24 : 8); in getFormatComponentWidth() 3647 return (componentNdx == 0 ? 1 : 5); in getFormatComponentWidth() 3653 return (componentNdx == 3 ? 2 : 10); in getFormatComponentWidth() 3663 float getRepresentableDiffUnorm (const VkFormat format, const deUint32 componentNdx) in getRepresentableDiffUnorm() argument 3665 const deUint32 size (getFormatComponentWidth(format, componentNdx)); in getRepresentableDiffUnorm() 3670 float getRepresentableDiffSnorm (const VkFormat format, const deUint32 componentNdx) in getRepresentableDiffSnorm() argument 3672 const deUint32 size (getFormatComponentWidth(format, componentNdx)); in getRepresentableDiffSnorm()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fVertexArrayObjectTests.cpp | 349 for (int componentNdx = 0; componentNdx < buffer.componentCount; componentNdx++) in createRandomBufferData() local 933 for (int componentNdx = 0; componentNdx < buffer.componentCount; componentNdx++) in createRandomBufferData() local
|