/external/deqp/external/vulkancts/modules/vulkan/protected_memory/ |
D | vktProtectedMemStorageBufferTests.cpp | 189 const tcu::UVec4 testInput, 199 const tcu::UVec4 m_testInput; 212 const tcu::UVec4 testInput, in StorageBufferTestCase() 234 const tcu::UVec4 m_testInput; 243 const tcu::UVec4 testInput, in StorageBufferTestInstance() 674 const ValidationDataStorage<tcu::UVec4> testData[], in createSpecifiedStorageBufferTests() 684 …testGroup->addChild(new StorageBufferTestCase<tcu::UVec4>(testCtx, testType, shaderType, name.c_st… in createSpecifiedStorageBufferTests() 693 std::vector<ValidationDataStorage<tcu::UVec4> > testData; in createRandomizedBufferTests() 697 …testData[ndx].values = tcu::UVec4(rnd.getUint32(), rnd.getUint32(), rnd.getUint32(), rnd.getUint32… in createRandomizedBufferTests() 706 const ValidationDataStorage<tcu::UVec4> testData[], in createRWStorageBufferTests() [all …]
|
D | vktProtectedMemFillUpdateCopyBufferTests.cpp | 525 { tcu::UVec4(3u), tcu::UVec4(3u), tcu::UVec4(3u), tcu::UVec4(3u) } in createFillUpdateCopyBufferUnsignedTests() 531 { tcu::UVec4(18u), tcu::UVec4(18u), tcu::UVec4(18u), tcu::UVec4(18u) } in createFillUpdateCopyBufferUnsignedTests() 537 { tcu::UVec4(669154u), tcu::UVec4(669154u), tcu::UVec4(669154u), tcu::UVec4(669154u) } in createFillUpdateCopyBufferUnsignedTests() 543 { tcu::UVec4(40u), tcu::UVec4(40u), tcu::UVec4(40u), tcu::UVec4(40u) } in createFillUpdateCopyBufferUnsignedTests() 549 { tcu::UVec4(915u), tcu::UVec4(915u), tcu::UVec4(915u), tcu::UVec4(915u) } in createFillUpdateCopyBufferUnsignedTests() 555 { tcu::UVec4(2548675u), tcu::UVec4(2548675u), tcu::UVec4(2548675u), tcu::UVec4(2548675u) } in createFillUpdateCopyBufferUnsignedTests() 571 staticTests->addChild(new FillUpdateCopyBufferTestCase<tcu::UVec4>( in createFillUpdateCopyBufferUnsignedTests() 583 tcu::UVec4 refValue (fillValue); in createFillUpdateCopyBufferUnsignedTests() 598 …randomTests->addChild(new FillUpdateCopyBufferTestCase<tcu::UVec4>(testCtx, name.c_str(), fillValu… in createFillUpdateCopyBufferUnsignedTests()
|
/external/deqp/modules/internal/ |
D | ditSRGB8ConversionTest.cpp | 55 const tcu::UVec4 calculateDiscreteFloatDistance (const tcu::Vec4& ref, const tcu::Vec4& res) in calculateDiscreteFloatDistance() 57 …return tcu::UVec4(calculateDiscreteFloatDistance(ref[0], res[0]), calculateDiscreteFloatDistance(r… in calculateDiscreteFloatDistance() 75 const tcu::UVec4 src (i); in iterate() 79 const tcu::UVec4 discreteFloatDiff (calculateDiscreteFloatDistance(ref, res)); in iterate() 84 if (tcu::boolAny(tcu::greaterThan(discreteFloatDiff, tcu::UVec4(1u)))) in iterate()
|
/external/deqp/framework/common/ |
D | tcuTexLookupVerifier.hpp | 63 UVec4 colorThreshold; //!< Threshold for match. 123 …leMode, const IntLookupPrecision& prec, const float coordX, const int coordY, const UVec4& result); 127 …aleMode, const IntLookupPrecision& prec, const Vec2& coord, const int coordZ, const UVec4& result); 131 …LookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec3& coord, const UVec4& result); 137 …cision& prec, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4], const UVec4& result); 141 …cision& prec, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4], const UVec4& result); 146 …sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const UVec4& result);
|
D | tcuImageCompare.hpp | 52 …PixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, Compar… 55 …PixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, Compar… 56 …PixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, const … 57 …PixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, const …
|
D | tcuImageCompare.cpp | 91 …PixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, const … in findNumPositionDeviationFailingPixels() 124 const UVec4 diff = abs(refPix - cmpPix).cast<deUint32>(); in findNumPositionDeviationFailingPixels() 143 const UVec4 diff = abs(refPix - deviatedCmpPix).cast<deUint32>(); in findNumPositionDeviationFailingPixels() 166 const UVec4 diff = abs(cmpPix - deviatedRefPix).cast<deUint32>(); in findNumPositionDeviationFailingPixels() 457 static tcu::UVec4 computeFlushRelaxedULPDiff (const tcu::Vec4& a, const tcu::Vec4& b) in computeFlushRelaxedULPDiff() 459 return tcu::UVec4(computeFloatFlushRelaxedULPDiff(a.x(), b.x()), in computeFlushRelaxedULPDiff() 488 …PixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, Compar… in floatUlpThresholdCompare() 495 UVec4 maxDiff (0, 0, 0, 0); in floatUlpThresholdCompare() 509 const UVec4 diff = computeFlushRelaxedULPDiff(refPix, cmpPix); in floatUlpThresholdCompare() 743 …PixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, Compar… in intThresholdCompare() [all …]
|
D | tcuTextureUtil.hpp | 48 Vec4 sRGB8ToLinear (const UVec4& cs); 49 Vec4 sRGBA8ToLinear (const UVec4& cs); 110 UVec4 getFormatMaxUintValue (const TextureFormat& format); 115 void clear (const PixelBufferAccess& access, const UVec4& color);
|
D | tcuAstcUtil.cpp | 332 UVec4 e0; 333 UVec4 e1; 788 inline UVec4 clampedRGBA (const IVec4& rgba) in clampedRGBA() 790 return UVec4(de::clamp(rgba.x(), 0, 0xff), in clampedRGBA() 811 void decodeHDREndpointMode7 (UVec4& e0, UVec4& e1, deUint32 v0, deUint32 v1, deUint32 v2, deUint32 … in decodeHDREndpointMode7() 879 e0 = UVec4(de::clamp(red - scale, 0, 0xfff), in decodeHDREndpointMode7() 884 e1 = UVec4(de::clamp(red, 0, 0xfff), in decodeHDREndpointMode7() 890 void decodeHDREndpointMode11 (UVec4& e0, UVec4& e1, deUint32 v0, deUint32 v1, deUint32 v2, deUint32… in decodeHDREndpointMode11() 896 e0 = UVec4(v0<<4, v2<<4, getBits(v4,0,6)<<5, 0x780); in decodeHDREndpointMode11() 897 e1 = UVec4(v1<<4, v3<<4, getBits(v5,0,6)<<5, 0x780); in decodeHDREndpointMode11() [all …]
|
D | tcuTextureUtil.cpp | 77 Vec4 sRGB8ToLinear (const UVec4& cs) in sRGB8ToLinear() 85 Vec4 sRGBA8ToLinear (const UVec4& cs) in sRGBA8ToLinear() 497 UVec4 getFormatMaxUintValue (const TextureFormat& format) in getFormatMaxUintValue() 503 return UVec4(1023u, 1023u, 1023u, 3u); in getFormatMaxUintValue() 507 case TextureFormat::UNSIGNED_INT8: return UVec4(std::numeric_limits<deUint8>::max()); in getFormatMaxUintValue() 508 case TextureFormat::UNSIGNED_INT16: return UVec4(std::numeric_limits<deUint16>::max()); in getFormatMaxUintValue() 509 case TextureFormat::UNSIGNED_INT24: return UVec4(0xffffffu); in getFormatMaxUintValue() 510 case TextureFormat::UNSIGNED_INT32: return UVec4(std::numeric_limits<deUint32>::max()); in getFormatMaxUintValue() 514 return UVec4(0); in getFormatMaxUintValue() 776 void clear (const PixelBufferAccess& access, const UVec4& color) in clear() [all …]
|
/external/deqp/external/openglcts/modules/glesext/draw_buffers_indexed/ |
D | esextcDrawBuffersIndexedColorMasks.cpp | 143 tcu::UVec4 c0(2, 3, 4, 5); in iterate() 186 tcu::UVec4 c1(23, 23, 23, 23); in iterate() 217 tcu::UVec4 e(static_cast<unsigned int>(0.15f * 255), static_cast<unsigned int>(0.30f * 255), in iterate() 220 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, in iterate() 242 tcu::UVec4 e(2, 3, 4, 5); in iterate() 244 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, in iterate() 264 tcu::UVec4 e(2, 3, 4, 5); in iterate() 266 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, in iterate() 409 tcu::UVec4 epsilon; in GetEpsilon()
|
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassSparseRenderTargetTests.cpp | 50 using tcu::UVec4; 500 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() 501 const UVec4 color (1u << (bits.x()-1), 1u << (bits.y()-2), 1u << (bits.z()-3), 0xffffffff); in iterateInternal() 509 …context.getTestContext().getLog(), "", "", reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal() 516 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() 517 const UVec4 color (1u << (bits.x()-2), 1u << (bits.y()-3), 1u << (bits.z()-4), 0xffffffff); in iterateInternal() 525 …context.getTestContext().getLog(), "", "", reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal() 548 …const Vec4 threshold (4.0f * 1.0f / ((UVec4(1u) << tcu::getTextureFormatMantissaBitDepth(format).c… in iterateInternal() 571 …const UVec4 threshold (64u * (UVec4(1u) << (UVec4(23) - tcu::getTextureFormatMantissaBitDepth(form… in iterateInternal() 594 const UVec4 bits (tcu::getTextureFormatBitDepth(texFormat).cast<deUint32>()); in init()
|
D | vktRenderPassMultisampleTests.cpp | 61 using tcu::UVec4; 1442 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() 1443 const UVec4 minValue (0); in iterateInternal() 1444 const UVec4 range (UVec4(1u) << tcu::min(bits, UVec4(31))); in iterateInternal() 1453 UVec4 color (minValue); in iterateInternal() 1479 …xt().getLog(), name.c_str(), name.c_str(), reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal() 1487 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() 1489 const IVec4 range ((UVec4(1u) << tcu::min(bits, UVec4(30))).cast<deInt32>()); in iterateInternal() 1524 …xt().getLog(), name.c_str(), name.c_str(), reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal() 1535 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() [all …]
|
D | vktRenderPassMultisampleResolveTests.cpp | 61 using tcu::UVec4; 1163 const UVec4 bitDepth (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in verify() 1164 … const UVec4 renderValue (tcu::select((UVec4(1u) << tcu::min(UVec4(8u), bitDepth)) - UVec4(1u), in verify() 1165 UVec4(0u, 0u, 0u, 1u), in verify() 1167 const UVec4 clearValue (tcu::select(UVec4(0u), in verify() 1168 UVec4(0u, 0u, 0u, 1u), in verify() 1179 const UVec4 refColor (m_sampleMask == 0x0u in verify() 1204 const UVec4 color (accesses[attachmentNdx].getPixelUint(x, y, z)); in verify()
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmIndexingTests.cpp | 43 using tcu::UVec4; 76 vector<UVec4> indexSelectorData; in addComputeIndexingStructTests() 84 …indexSelectorData.push_back(UVec4(rnd.getUint32() % 32, rnd.getUint32() % 32, rnd.getUint32() % 4,… in addComputeIndexingStructTests() 231 spec.inputs.push_back(BufferSp(new Buffer<UVec4>(indexSelectorData))); in addComputeIndexingStructTests() 237 const UVec4 vec = indexSelectorData[numIdx]; in addComputeIndexingStructTests() 292 vector<UVec4> indexSelectorData; in addGraphicsIndexingStructTests() 300 …indexSelectorData.push_back(UVec4(rnd.getUint32() % 32, rnd.getUint32() % 32, rnd.getUint32() % 4,… in addGraphicsIndexingStructTests() 429 …resources.inputs.push_back(Resource(BufferSp(new Buffer<UVec4>(indexSelectorData)), VK_DESCRIPTOR_… in addGraphicsIndexingStructTests() 483 const UVec4 vec = indexSelectorData[numIdx]; in addGraphicsIndexingStructTests()
|
/external/deqp/external/openglcts/modules/gles31/ |
D | es31cShaderAtomicCountersTests.cpp | 41 using tcu::UVec4; 590 bool CheckCounterValues(GLuint size, UVec4* data, GLuint min_value) in CheckCounterValues() 1699 UVec4 data[s * s]; in Run() 2018 UVec4 data[s * s + 3]; in Run() 2025 data[s * s] = UVec4(data2[0]); in Run() 2026 data[s * s + 1] = UVec4(data2[1]); in Run() 2027 data[s * s + 2] = UVec4(data2[2]); in Run() 2038 data[s * s] = UVec4(data2[0]); in Run() 2039 data[s * s + 1] = UVec4(data2[1]); in Run() 2040 data[s * s + 2] = UVec4(data2[2]); in Run() [all …]
|
D | es31cVertexAttribBindingTests.cpp | 37 using tcu::UVec4; 186 bool IsEqual(UVec4 a, UVec4 b) in IsEqual() 1479 UVec4 expected_dataui[32]; 1490 expected_dataui[i] = UVec4(0); in Setup() 1565 …void* data = glMapBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, 0, sizeof(UVec4) * 64, GL_MAP_READ_… in Run() 1567 UVec4* dataui = (static_cast<UVec4*>(data)) + 8; in Run() 1744 expected_dataui[0] = UVec4(13, 14, 15, 1); in Run() 1745 expected_dataui[1] = UVec4(17, 18, 0, 1); in Run() 1746 expected_dataui[2] = UVec4(21, 0, 0, 1); in Run() 1747 expected_dataui[3] = UVec4(94, 95, 96, 97); in Run() [all …]
|
/external/deqp/framework/referencerenderer/ |
D | rrVertexAttrib.hpp | 153 void readVertexAttrib (tcu::UVec4& dst, const VertexAttrib& vertexAttrib, const int instanceNdx, … 171 inline tcu::UVec4 readVertexAttribUint (const VertexAttrib& vertexAttrib, const int instanceNdx, co… in readVertexAttribUint() 173 tcu::UVec4 v; in readVertexAttribUint()
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawShaderViewportIndexTests.cpp | 63 using tcu::UVec4; 202 const std::vector<UVec4> cells) in makeGraphicsPipeline() 257 for (std::vector<UVec4>::const_iterator it = cells.begin(); it != cells.end(); ++it) { in makeGraphicsPipeline() 429 std::vector<UVec4> generateGrid (const int numCells, const UVec2& renderSize) in generateGrid() 436 std::vector<UVec4> cells; in generateGrid() 451 cells.push_back(UVec4(x, y, rectWidth, rectHeight)); in generateGrid() 490 const std::vector<UVec4>& cells, in generateReferenceImage() 500 const UVec4& cell = cells[i]; in generateReferenceImage() 684 const std::vector<UVec4>& cells, in Renderer() 813 const std::vector<UVec4> cells = generateGrid(numViewports, renderSize); in testVertexShader() [all …]
|
D | vktDrawShaderLayerTests.cpp | 61 using tcu::UVec4; 508 const UVec4& cell, in generateReferenceImage() 653 std::vector<UVec4> generateGrid (const int numCells, const UVec2& renderSize) in generateGrid() 660 std::vector<UVec4> cells; in generateGrid() 675 cells.push_back(UVec4(x, y, rectWidth, rectHeight)); in generateGrid() 716 std::vector<PositionColorVertex> generateVertices (const std::vector<UVec4>& grid, const std::vecto… in generateVertices() 913 const std::vector<UVec4> grid = generateGrid(numLayers, renderSize); in testVertexShader() 975 const std::vector<UVec4> grid = generateGrid(numLayers, renderSize); in testTessellationShader()
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineClearUtil.cpp | 58 tcu::UVec4 defaultClearColorUint (const tcu::TextureFormat& format) in defaultClearColorUint() 63 const tcu::UVec4 result ((deUint32)deFloatRound(color.x()), (deUint32)deFloatRound(color.y()), in defaultClearColorUint() 108 const tcu::UVec4 defaultColor = defaultClearColorUint(tcuClearFormat); in defaultClearValue()
|
/external/deqp/modules/gles3/functional/ |
D | es3fRandomFragmentOpTests.cpp | 222 tcu::UVec4 getCompareThreshold (void) const; 377 const tcu::UVec4 threshold = getCompareThreshold(); in iterate() 415 tcu::UVec4 RandomFragmentOpCase::getCompareThreshold (void) const in getCompareThreshold() 420 return format.getColorThreshold().toIVec().asUint() + tcu::UVec4(2); // Default threshold. in getCompareThreshold() 423 …* tcu::UVec4(5) + tcu::UVec4(2); // \note Non-scientific ad hoc formula. Need big threshold when f… in getCompareThreshold()
|
D | es3fFragmentOutputTests.cpp | 60 using tcu::UVec4; 722 UVec4 maxVal (range.y()); in iterate() 728 …const UVec4 fmtMaxVal = ((tcu::Vector<deUint64, 4>(1) << fmtBits.cast<deUint64>())-deUint64(1)).as… in iterate() 733 … "out" << curInVec << " value range: " << valueRangeToString(numScalars, UVec4(0), maxVal) << Tes… in iterate() 736 const UVec4 step = maxVal / rangeDiv.asUint(); in iterate() 747 UVec4 c = step*swizzleVec(IVec4(x, y, ix, iy).asUint(), curInVec); in iterate() 897 UVec4 formatThreshold; //!< Threshold computed based on format. in iterate() 898 UVec4 finalThreshold; in iterate() 903 case tcu::TextureFormat::FLOAT: formatThreshold = UVec4(0); break; in iterate() 904 case tcu::TextureFormat::HALF_FLOAT: formatThreshold = UVec4((1<<(23-10))); break; in iterate() [all …]
|
/external/deqp/modules/gles2/functional/ |
D | es2fRandomFragmentOpTests.cpp | 222 tcu::UVec4 getCompareThreshold (void) const; 377 const tcu::UVec4 threshold = getCompareThreshold(); in iterate() 415 tcu::UVec4 RandomFragmentOpCase::getCompareThreshold (void) const in getCompareThreshold() 420 return format.getColorThreshold().toIVec().asUint() + tcu::UVec4(6); // Default threshold. in getCompareThreshold() 423 …* tcu::UVec4(5) + tcu::UVec4(2); // \note Non-scientific ad hoc formula. Need big threshold when f… in getCompareThreshold()
|
D | es2fBlendTests.cpp | 52 using tcu::UVec4; 272 …UVec4 compareThreshold = m_context.getRenderTarget().getPixelFormat().getColorThreshold().toIVec()… in iterate() 273 …* UVec4(5) / UVec4(2) + UVec4(3); // \note Non-scientific ad hoc formula. Need big threshold when … in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/ |
D | vktSparseResourcesImageSparseResidency.cpp | 629 … const tcu::UVec4 referenceValue = tcu::UVec4(offsetX % 127u, offsetY % 127u, offsetZ % 127u, 1u); in iterate() 630 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); in iterate() 642 const tcu::UVec4 referenceValue = tcu::UVec4(0u, 0u, 0u, 0u); in iterate() 643 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); in iterate() 660 … const tcu::UVec4 referenceValue = tcu::UVec4(offsetX % 127u, offsetY % 127u, offsetZ % 127u, 1u); in iterate() 661 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); in iterate()
|