Home
last modified time | relevance | path

Searched refs:UVec4 (Results 1 – 25 of 182) sorted by relevance

12345678

/external/deqp/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemStorageBufferTests.cpp180 const tcu::UVec4 testInput,
190 const tcu::UVec4 m_testInput;
203 const tcu::UVec4 testInput, in StorageBufferTestCase()
230 const tcu::UVec4 m_testInput;
239 const tcu::UVec4 testInput, in StorageBufferTestInstance()
670 const ValidationDataStorage<tcu::UVec4> testData[], in createSpecifiedStorageBufferTests()
680 …testGroup->addChild(new StorageBufferTestCase<tcu::UVec4>(testCtx, testType, shaderType, name.c_st… in createSpecifiedStorageBufferTests()
689 std::vector<ValidationDataStorage<tcu::UVec4> > testData; in createRandomizedBufferTests()
703 const ValidationDataStorage<tcu::UVec4> testData[], in createRWStorageBufferTests()
729 const tcu::UVec4& inputValue, in calculateAtomicOpData()
[all …]
DvktProtectedMemFillUpdateCopyBufferTests.cpp534 { 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()
/external/deqp/external/vulkancts/modules/vulkan/ray_query/
DvktRayQueryTraversalControlTests.cpp585 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 …]
/external/deqp/modules/internal/
DditSRGB8ConversionTest.cpp55 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/
DtcuTexLookupVerifier.hpp63 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);
DtcuImageCompare.hpp52 …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 …
DtcuTextureUtil.hpp48 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);
DtcuImageCompare.cpp91 …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 …]
DtcuAstcUtil.cpp332 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 …]
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmIndexingTests.cpp44 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()
/external/deqp/external/openglcts/modules/glesext/draw_buffers_indexed/
DesextcDrawBuffersIndexedColorMasks.cpp143 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/
DvktRenderPassSparseRenderTargetTests.cpp50 using tcu::UVec4;
502 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal()
503 const UVec4 color (1u << (bits.x()-1), 1u << (bits.y()-2), 1u << (bits.z()-3), 0xffffffff); in iterateInternal()
511 …context.getTestContext().getLog(), "", "", reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal()
518 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal()
519 const UVec4 color (1u << (bits.x()-2), 1u << (bits.y()-3), 1u << (bits.z()-4), 0xffffffff); in iterateInternal()
527 …context.getTestContext().getLog(), "", "", reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal()
550 …const Vec4 threshold (4.0f * 1.0f / ((UVec4(1u) << tcu::getTextureFormatMantissaBitDepth(format).c… in iterateInternal()
573 …const UVec4 threshold (64u * (UVec4(1u) << (UVec4(23) - tcu::getTextureFormatMantissaBitDepth(form… in iterateInternal()
596 const UVec4 bits (tcu::getTextureFormatBitDepth(texFormat).cast<deUint32>()); in init()
DvktRenderPassMultisampleTests.cpp61 using tcu::UVec4;
1558 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal()
1559 const UVec4 minValue (0); in iterateInternal()
1560 const UVec4 range (UVec4(1u) << tcu::min(bits, UVec4(31))); in iterateInternal()
1569 UVec4 color (minValue); in iterateInternal()
1595 …xt().getLog(), name.c_str(), name.c_str(), reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal()
1603 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal()
1605 const IVec4 range ((UVec4(1u) << tcu::min(bits, UVec4(30))).cast<deInt32>()); in iterateInternal()
1640 …xt().getLog(), name.c_str(), name.c_str(), reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterateInternal()
1651 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterateInternal()
[all …]
DvktRenderPassMultisampleResolveTests.cpp62 using tcu::UVec4;
853 const UVec4 bitDepth (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in verify()
854 … const UVec4 renderValue (tcu::select((UVec4(1u) << tcu::min(UVec4(8u), bitDepth)) - UVec4(1u), in verify()
855 UVec4(0u, 0u, 0u, 1u), in verify()
857 const UVec4 clearValue (tcu::select(UVec4(0u), in verify()
858 UVec4(0u, 0u, 0u, 1u), in verify()
869 const UVec4 refColor (m_sampleMask == 0x0u in verify()
894 const UVec4 color (accesses[attachmentNdx].getPixelUint(x, y, z)); in verify()
1869 const UVec4 refColor(0, 48, 144, 189); in verify()
1870 UVec4 threshold(1, 1, 1, 1); in verify()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingShaderBindingTableTests.cpp286 …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 …]
DvktRayTracingTraversalControlTests.cpp327 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()
DvktRayTracingCallableShadersTests.cpp373 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()
/external/deqp/framework/referencerenderer/
DrrVertexAttrib.hpp153 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/openglcts/modules/gles31/
Des31cShaderAtomicCountersTests.cpp41 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 …]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineLogicOpTests.cpp69 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()
DvktPipelineClearUtil.cpp58 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/external/vulkancts/modules/vulkan/draw/
DvktDrawShaderViewportIndexTests.cpp66 using tcu::UVec4;
129 const std::vector<UVec4> cells) in makeGraphicsPipeline()
184 for (std::vector<UVec4>::const_iterator it = cells.begin(); it != cells.end(); ++it) { in makeGraphicsPipeline()
356 std::vector<UVec4> generateGrid (const int numCells, const UVec2& renderSize) in generateGrid()
363 std::vector<UVec4> cells; in generateGrid()
378 cells.push_back(UVec4(x, y, rectWidth, rectHeight)); in generateGrid()
417 const std::vector<UVec4>& cells, in generateReferenceImage()
427 const UVec4& cell = cells[i]; in generateReferenceImage()
655 const std::vector<UVec4>& cells, in Renderer()
814 const std::vector<UVec4> cells = generateGrid(numViewports, renderSize); in testVertexFragmentShader()
[all …]
DvktDrawShaderLayerTests.cpp63 using tcu::UVec4;
331 const UVec4& cell, in generateReferenceImage()
476 std::vector<UVec4> generateGrid (const int numCells, const UVec2& renderSize) in generateGrid()
483 std::vector<UVec4> cells; in generateGrid()
498 cells.push_back(UVec4(x, y, rectWidth, rectHeight)); in generateGrid()
539 std::vector<PositionColorVertex> generateVertices (const std::vector<UVec4>& grid, const std::vecto… in generateVertices()
729 const std::vector<UVec4> grid = generateGrid(numLayers, renderSize); in testVertexShader()
789 const std::vector<UVec4> grid = generateGrid(numLayers, renderSize); in testTessellationShader()
/external/deqp/modules/gles2/functional/
Des2fRandomFragmentOpTests.cpp222 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()
/external/deqp/modules/gles3/functional/
Des3fRandomFragmentOpTests.cpp222 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()

12345678