/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/ |
D | vktProtectedMemStorageBufferTests.cpp | 183 const tcu::UVec4 testInput, 193 const tcu::UVec4 m_testInput; 206 const tcu::UVec4 testInput, in StorageBufferTestCase() 233 const tcu::UVec4 m_testInput; 242 const tcu::UVec4 testInput, in StorageBufferTestInstance() 672 const ValidationDataStorage<tcu::UVec4> testData[], in createSpecifiedStorageBufferTests() 682 …testGroup->addChild(new StorageBufferTestCase<tcu::UVec4>(testCtx, testType, shaderType, name.c_st… in createSpecifiedStorageBufferTests() 691 std::vector<ValidationDataStorage<tcu::UVec4> > testData; in createRandomizedBufferTests() 705 const ValidationDataStorage<tcu::UVec4> testData[], in createRWStorageBufferTests() 731 const tcu::UVec4& inputValue, in calculateAtomicOpData() [all …]
|
D | vktProtectedMemFillUpdateCopyBufferTests.cpp | 534 { tcu::UVec4(3u), tcu::UVec4(3u), tcu::UVec4(3u), tcu::UVec4(3u) } in createFillUpdateCopyBufferUnsignedTests() 540 { tcu::UVec4(18u), tcu::UVec4(18u), tcu::UVec4(18u), tcu::UVec4(18u) } in createFillUpdateCopyBufferUnsignedTests() 546 { tcu::UVec4(669154u), tcu::UVec4(669154u), tcu::UVec4(669154u), tcu::UVec4(669154u) } in createFillUpdateCopyBufferUnsignedTests() 552 { tcu::UVec4(40u), tcu::UVec4(40u), tcu::UVec4(40u), tcu::UVec4(40u) } in createFillUpdateCopyBufferUnsignedTests() 558 { tcu::UVec4(915u), tcu::UVec4(915u), tcu::UVec4(915u), tcu::UVec4(915u) } in createFillUpdateCopyBufferUnsignedTests() 564 { tcu::UVec4(2548675u), tcu::UVec4(2548675u), tcu::UVec4(2548675u), tcu::UVec4(2548675u) } in createFillUpdateCopyBufferUnsignedTests() 580 staticTests->addChild(new FillUpdateCopyBufferTestCase<tcu::UVec4>( in createFillUpdateCopyBufferUnsignedTests() 592 const tcu::UVec4 refValue (fillValue); in createFillUpdateCopyBufferUnsignedTests() 609 …randomTests->addChild(new FillUpdateCopyBufferTestCase<tcu::UVec4>(testCtx, name.c_str(), fillValu… in createFillUpdateCopyBufferUnsignedTests()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/ |
D | vktRayQueryTraversalControlTests.cpp | 585 tcu::UVec4 rqValue0, rqValue1; in verifyImage() 592 rqValue0 = tcu::UVec4(1, 0, 0, 0); in verifyImage() 593 rqValue1 = tcu::UVec4(1, 0, 0, 0); in verifyImage() 596 rqValue0 = tcu::UVec4(2, 0, 0, 0); in verifyImage() 597 rqValue1 = tcu::UVec4(1, 0, 0, 0); in verifyImage() 607 rqValue0 = tcu::UVec4(0, 0, 0, 0); in verifyImage() 608 rqValue1 = tcu::UVec4(1, 0, 0, 0); in verifyImage() 611 rqValue0 = tcu::UVec4(0, 0, 0, 0); in verifyImage() 612 rqValue1 = tcu::UVec4(1, 0, 0, 0); in verifyImage() 628 tcu::UVec4 clearValue, missValue, hitValue0, hitValue1; in verifyImage() [all …]
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuTexLookupVerifier.hpp | 63 UVec4 colorThreshold; //!< Threshold for match. 124 …leMode, const IntLookupPrecision& prec, const float coordX, const int coordY, const UVec4& result); 128 …aleMode, const IntLookupPrecision& prec, const Vec2& coord, const int coordZ, const UVec4& result); 132 …LookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec3& coord, const UVec4& result); 138 …cision& prec, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4], const UVec4& result); 142 …cision& prec, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4], const UVec4& result); 147 …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 | tcuTextureUtil.hpp | 50 Vec4 sRGB8ToLinear (const UVec4& cs); 51 Vec4 sRGBA8ToLinear (const UVec4& cs); 112 UVec4 getFormatMaxUintValue (const TextureFormat& format); 117 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 | 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() 744 …PixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, Compar… in intThresholdCompare() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmIndexingTests.cpp | 44 using tcu::UVec4; 77 vector<UVec4> indexSelectorData; in addComputeIndexingStructTests() 85 indexSelectorData.push_back(tcu::randomVector<deUint32, 4>(rnd, UVec4(0), UVec4(31, 31, 3, 3))); in addComputeIndexingStructTests() 232 spec.inputs.push_back(BufferSp(new Buffer<UVec4>(indexSelectorData))); in addComputeIndexingStructTests() 238 const UVec4 vec = indexSelectorData[numIdx]; in addComputeIndexingStructTests() 293 vector<UVec4> indexSelectorData; in addGraphicsIndexingStructTests() 301 indexSelectorData.push_back(tcu::randomVector<deUint32, 4>(rnd, UVec4(0), UVec4(31, 31, 3, 3))); in addGraphicsIndexingStructTests() 430 …resources.inputs.push_back(Resource(BufferSp(new Buffer<UVec4>(indexSelectorData)), VK_DESCRIPTOR_… in addGraphicsIndexingStructTests() 484 const UVec4 vec = indexSelectorData[numIdx]; in addGraphicsIndexingStructTests()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/draw_buffers_indexed/ |
D | esextcDrawBuffersIndexedColorMasks.cpp | 144 tcu::UVec4 c0(2, 3, 4, 5); in iterate() 187 tcu::UVec4 c1(23, 23, 23, 23); in iterate() 218 tcu::UVec4 e(static_cast<unsigned int>(0.15f * 255), static_cast<unsigned int>(0.30f * 255), in iterate() 221 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, in iterate() 243 tcu::UVec4 e(2, 3, 4, 5); in iterate() 245 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, in iterate() 265 tcu::UVec4 e(2, 3, 4, 5); in iterate() 267 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, in iterate() 410 tcu::UVec4 epsilon; in GetEpsilon()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassSparseRenderTargetTests.cpp | 50 using tcu::UVec4; 535 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() 536 const UVec4 color (1u << (bits.x()-1), 1u << (bits.y()-2), 1u << (bits.z()-3), 0xffffffff); in iterateInternal() 544 …context.getTestContext().getLog(), "", "", reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal() 551 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() 552 const UVec4 color (1u << (bits.x()-2), 1u << (bits.y()-3), 1u << (bits.z()-4), 0xffffffff); in iterateInternal() 560 …context.getTestContext().getLog(), "", "", reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal() 583 …const Vec4 threshold (4.0f * 1.0f / ((UVec4(1u) << tcu::getTextureFormatMantissaBitDepth(format).c… in iterateInternal() 606 …const UVec4 threshold (64u * (UVec4(1u) << (UVec4(23) - tcu::getTextureFormatMantissaBitDepth(form… in iterateInternal() 629 const UVec4 bits (tcu::getTextureFormatBitDepth(texFormat).cast<deUint32>()); in init()
|
D | vktRenderPassMultisampleTests.cpp | 61 using tcu::UVec4; 1556 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() 1557 const UVec4 minValue (0); in iterateInternal() 1558 const UVec4 range (UVec4(1u) << tcu::min(bits, UVec4(31))); in iterateInternal() 1567 UVec4 color (minValue); in iterateInternal() 1593 …xt().getLog(), name.c_str(), name.c_str(), reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal() 1601 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() 1603 const IVec4 range ((UVec4(1u) << tcu::min(bits, UVec4(30))).cast<deInt32>()); in iterateInternal() 1638 …xt().getLog(), name.c_str(), name.c_str(), reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal() 1649 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal() [all …]
|
D | vktRenderPassMultisampleResolveTests.cpp | 62 using tcu::UVec4; 1046 const UVec4 bitDepth (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in verify() 1047 … const UVec4 renderValue (tcu::select((UVec4(1u) << tcu::min(UVec4(8u), bitDepth)) - UVec4(1u), in verify() 1048 UVec4(0u, 0u, 0u, 1u), in verify() 1050 const UVec4 clearValue (tcu::select(UVec4(0u), in verify() 1051 UVec4(0u, 0u, 0u, 1u), in verify() 1062 const UVec4 refColor (m_sampleMask == 0x0u in verify() 1087 const UVec4 color (accesses[attachmentNdx].getPixelUint(x, y, z)); in verify() 2081 const UVec4 refColor(0, 48, 144, 189); in verify() 2082 UVec4 threshold(1, 1, 1, 1); in verify() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
D | vktRayTracingShaderBindingTableTests.cpp | 286 …const VkBufferCreateInfo uniformBufferCreateInfo = makeBufferCreateInfo(sizeof(tcu::UVec4), VK_BU… in initUniformBuffer() 288 tcu::UVec4 uniformValue; // x = sbtRecordOffset, y = sbtRecordStride, z = missIndex in initUniformBuffer() 293 …uniformValue = tcu::UVec4(testParams.sbtRecordOffsetPassedToTraceRay, testParams.sbtRecordStride, … in initUniformBuffer() 298 uniformValue = tcu::UVec4(0, 0, testParams.sbtRecordOffsetPassedToTraceRay, 0); in initUniformBuffer() 303 …uniformValue = tcu::UVec4(testParams.sbtRecordOffsetPassedToTraceRay, testParams.sbtRecordStride, … in initUniformBuffer() 309 deMemcpy(uniformBuffer->getAllocation().getHostPtr(), &uniformValue, sizeof(tcu::UVec4)); in initUniformBuffer() 443 …cordAlignedSize = deAlign32(shaderGroupHandleSize + deUint32(sizeof(tcu::UVec4)), shaderGroupHand… in initShaderBindingTables() 450 …rCount[STT_HIT], 0u, 0u, MemoryRequirement::Any, 0u, shaderBindingTableOffset, sizeof(tcu::UVec4)); in initShaderBindingTables() 471 tcu::UVec4 shaderRecord(deUint32(idx), 0, 0, 0); in initShaderBindingTables() 472 deMemcpy(shaderRecordAddress, &shaderRecord, sizeof(tcu::UVec4)); in initShaderBindingTables() [all …]
|
D | vktRayTracingTraversalControlTests.cpp | 327 tcu::UVec4 missValue0 = tcu::UVec4(4, 0, 0, 0); in verifyImage() 328 tcu::UVec4 missValue1 = tcu::UVec4(0, 0, 0, 0); in verifyImage() 329 tcu::UVec4 hitValue0, hitValue1; in verifyImage() 333 hitValue0 = tcu::UVec4(1, 0, 0, 0); // ahit returns 1 in verifyImage() 334 hitValue1 = tcu::UVec4(3, 0, 0, 0); // chit returns 3 in verifyImage() 341 …hitValue0 = tcu::UVec4(0, 0, 0, 0); // empty ahit shader. Initial value from rgen written to result in verifyImage() 342 hitValue1 = tcu::UVec4(3, 0, 0, 0); // chit returns 3 in verifyImage() 349 …hitValue0 = tcu::UVec4(1, 0, 0, 0); // ahit should return 1. If it returned 2, then terminateRayEX… in verifyImage() 350 hitValue1 = tcu::UVec4(3, 0, 0, 0); // chit returns 3 in verifyImage() 369 …().getLog(), "Result comparison", "", referenceAccess, resultAccess, tcu::UVec4(0), tcu::COMPARE_L… in verifyImage()
|
D | vktRayTracingCallableShadersTests.cpp | 373 tcu::UVec4 missValue, hitValue; in verifyImage() 379 missValue = tcu::UVec4(1, 0, 0, 0); in verifyImage() 380 hitValue = tcu::UVec4(1, 0, 0, 0); in verifyImage() 383 missValue = tcu::UVec4(1, 0, 0, 0); in verifyImage() 384 hitValue = tcu::UVec4(1, 0, 0, 0); in verifyImage() 387 missValue = tcu::UVec4(1, 0, 0, 0); in verifyImage() 388 hitValue = tcu::UVec4(2, 0, 0, 0); in verifyImage() 391 missValue = tcu::UVec4(16, 0, 0, 0); in verifyImage() 392 hitValue = tcu::UVec4(16, 0, 0, 0); in verifyImage() 404 …().getLog(), "Result comparison", "", referenceAccess, resultAccess, tcu::UVec4(0), tcu::COMPARE_L… in verifyImage()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/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 …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineLogicOpTests.cpp | 69 tcu::UVec4 fbColor; // Framebuffer color. 70 tcu::UVec4 quadColor; // Geometry color. 391 tcu::UVec4 quadColor(0u, 0u, 0u, 0u); in LogicOpTestInstance() 442 tcu::UVec4 expectedColor (0u, 0u, 0u, 0u); // Overwritten below. in verifyImage() 445 tcu::UVec4 threshold (0u, 0u, 0u, 0u); // Exact results. in verifyImage() 498 const tcu::UVec4 kQuadColor = { 0x35acU, 0x5ac3U, 0xac35U, 0xc35aU }; in createLogicOpTests() 499 const tcu::UVec4 kFbColor = { 0x53caU, 0x3ca5U, 0xca53U, 0xa53cU }; in createLogicOpTests()
|
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()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawShaderViewportIndexTests.cpp | 66 using tcu::UVec4; 123 const std::vector<UVec4> cells) in makeGraphicsPipeline() 178 for (std::vector<UVec4>::const_iterator it = cells.begin(); it != cells.end(); ++it) { in makeGraphicsPipeline() 366 std::vector<UVec4> generateGrid (const int numCells, const UVec2& renderSize) in generateGrid() 373 std::vector<UVec4> cells; in generateGrid() 388 cells.push_back(UVec4(x, y, rectWidth, rectHeight)); in generateGrid() 427 const std::vector<UVec4>& cells, in generateReferenceImage() 437 const UVec4& cell = cells[i]; in generateReferenceImage() 661 const std::vector<UVec4>& cells, in Renderer() 839 const std::vector<UVec4> cells = generateGrid(testParams.numViewports, renderSize); in testVertexFragmentShader() [all …]
|
D | vktDrawShaderLayerTests.cpp | 63 using tcu::UVec4; 353 const UVec4& cell, in generateReferenceImage() 498 std::vector<UVec4> generateGrid (const int numCells, const UVec2& renderSize) in generateGrid() 505 std::vector<UVec4> cells; in generateGrid() 520 cells.push_back(UVec4(x, y, rectWidth, rectHeight)); in generateGrid() 561 std::vector<PositionColorVertex> generateVertices (const std::vector<UVec4>& grid, const std::vecto… in generateVertices() 777 const std::vector<UVec4> grid = generateGrid(params.numLayers, renderSize); in testVertexShader() 837 const std::vector<UVec4> grid = generateGrid(params.numLayers, renderSize); in testTessellationShader()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/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()
|