/external/deqp/modules/internal/ |
H A D | ditSRGB8ConversionTest.cpp | 55 const tcu::UVec4 calculateDiscreteFloatDistance (const tcu::Vec4& ref, const tcu::Vec4& res) 57 return tcu::UVec4(calculateDiscreteFloatDistance(ref[0], res[0]), calculateDiscreteFloatDistance(ref[1], res[1]), calculateDiscreteFloatDistance(ref[2], res[2]), calculateDiscreteFloatDistance(ref[3], res[3])); 75 const tcu::UVec4 src (i); 79 const tcu::UVec4 discreteFloatDiff (calculateDiscreteFloatDistance(ref, res)); 84 if (tcu::boolAny(tcu::greaterThan(discreteFloatDiff, tcu::UVec4(1u))))
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineClearUtil.hpp | 38 tcu::UVec4 defaultClearColorUint (const tcu::TextureFormat& format);
|
H A D | vktPipelineClearUtil.cpp | 58 tcu::UVec4 defaultClearColorUint (const tcu::TextureFormat& format) 63 const tcu::UVec4 result ((deUint32)deFloatRound(color.x()), (deUint32)deFloatRound(color.y()), 108 const tcu::UVec4 defaultColor = defaultClearColorUint(tcuClearFormat);
|
/external/deqp/framework/referencerenderer/ |
H A D | rrVertexAttrib.hpp | 153 void readVertexAttrib (tcu::UVec4& dst, const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx); 171 inline tcu::UVec4 readVertexAttribUint (const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx) 173 tcu::UVec4 v;
|
/external/deqp/framework/common/ |
H A D | tcuImageCompare.hpp | 52 bool floatUlpThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, CompareLogMode logMode); 55 bool intThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, CompareLogMode logMode); 56 bool intThresholdPositionDeviationCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, const tcu::IVec3& maxPositionDeviation, bool acceptOutOfBoundsAsAnyValue, CompareLogMode logMode); 57 bool intThresholdPositionDeviationErrorThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, const tcu::IVec3& maxPositionDeviation, bool acceptOutOfBoundsAsAnyValue, int maxAllowedFailingPixels, CompareLogMode logMode);
|
H A D | tcuVectorType.hpp | 51 typedef Vector<deUint32, 4> UVec4; typedef in namespace:tcu
|
H A D | tcuTexLookupVerifier.hpp | 63 UVec4 colorThreshold; //!< Threshold for match. 123 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const float coordX, const int coordY, const UVec4& result); 127 bool isLevel2DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec2& coord, const int coordZ, const UVec4& result); 131 bool isLevel3DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, TexLookupScaleMode scaleMode, const IntLookupPrecision& prec, const Vec3& coord, const UVec4& result); 137 bool isGatherOffsetsResultValid (const Texture2DView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec2& coord, int componentNdx, const IVec2 (&offsets)[4], const UVec4& result); 141 bool isGatherOffsetsResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const IVec2 (&offsets)[4], const UVec4& result); 146 bool isGatherResultValid (const TextureCubeView& texture, const Sampler& sampler, const IntLookupPrecision& prec, const Vec3& coord, int componentNdx, const UVec4& result);
|
H A 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);
|
H A D | tcuImageCompare.cpp | 91 static int findNumPositionDeviationFailingPixels (const PixelBufferAccess& errorMask, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, const tcu::IVec3& maxPositionDeviation, bool acceptOutOfBoundsAsAnyValue) 124 const UVec4 diff = abs(refPix - cmpPix).cast<deUint32>(); 143 const UVec4 diff = abs(refPix - deviatedCmpPix).cast<deUint32>(); 166 const UVec4 diff = abs(cmpPix - deviatedRefPix).cast<deUint32>(); 457 static tcu::UVec4 computeFlushRelaxedULPDiff (const tcu::Vec4& a, const tcu::Vec4& b) 459 return tcu::UVec4(computeFloatFlushRelaxedULPDiff(a.x(), b.x()), 488 bool floatUlpThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4& threshold, CompareLogMode logMode) 495 UVec4 maxDiff (0, 0, 0, 0); 509 const UVec4 diff = computeFlushRelaxedULPDiff(refPix, cmpPix); 743 bool intThresholdCompare (TestLog& log, const char* imageSetName, const char* imageSetDesc, const ConstPixelBufferAccess& reference, const ConstPixelBufferAccess& result, const UVec4 [all...] |
H A D | tcuAstcUtil.cpp | 332 UVec4 e0; 333 UVec4 e1; 776 inline UVec4 clampedRGBA (const IVec4& rgba) 778 return UVec4(de::clamp(rgba.x(), 0, 0xff), 799 void decodeHDREndpointMode7 (UVec4& e0, UVec4& e1, deUint32 v0, deUint32 v1, deUint32 v2, deUint32 v3) 867 e0 = UVec4(de::clamp(red - scale, 0, 0xfff), 872 e1 = UVec4(de::clamp(red, 0, 0xfff), 878 void decodeHDREndpointMode11 (UVec4& e0, UVec4 [all...] |
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/ |
H A D | vktProtectedMemStorageBufferTests.cpp | 187 const tcu::UVec4 testInput, 197 const tcu::UVec4 m_testInput; 210 const tcu::UVec4 testInput, 232 const tcu::UVec4 m_testInput; 241 const tcu::UVec4 testInput, 684 const ValidationDataStorage<tcu::UVec4> testData[], 694 testGroup->addChild(new StorageBufferTestCase<tcu::UVec4>(testCtx, testType, shaderType, name.c_str(), testData[ndx].values, testData[ndx])); 703 std::vector<ValidationDataStorage<tcu::UVec4> > testData; 707 testData[ndx].values = tcu::UVec4(rnd.getUint32(), rnd.getUint32(), rnd.getUint32(), rnd.getUint32()); 716 const ValidationDataStorage<tcu::UVec4> testDat [all...] |
H A D | vktProtectedMemFillUpdateCopyBufferTests.cpp | 600 { tcu::UVec4(3u), tcu::UVec4(3u), tcu::UVec4(3u), tcu::UVec4(3u) } 606 { tcu::UVec4(18u), tcu::UVec4(18u), tcu::UVec4(18u), tcu::UVec4(18u) } 612 { tcu::UVec4(669154u), tcu::UVec4(66915 [all...] |
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
H A D | vktSpvAsmIndexingTests.cpp | 43 using tcu::UVec4; 75 vector<UVec4> indexSelectorData; 83 indexSelectorData.push_back(UVec4(rnd.getUint32() % 32, rnd.getUint32() % 32, rnd.getUint32() % 4, rnd.getUint32() % 4)); 231 spec.inputs.push_back(BufferSp(new Buffer<UVec4>(indexSelectorData))); 237 const UVec4 vec = indexSelectorData[numIdx]; 283 vector<UVec4> indexSelectorData; 291 indexSelectorData.push_back(UVec4(rnd.getUint32() % 32, rnd.getUint32() % 32, rnd.getUint32() % 4, rnd.getUint32() % 4)); 421 resources.inputs.push_back(std::make_pair(VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, BufferSp(new Buffer<UVec4>(indexSelectorData)))); 475 const UVec4 vec = indexSelectorData[numIdx];
|
/external/deqp/external/openglcts/modules/glesext/draw_buffers_indexed/ |
H A D | esextcDrawBuffersIndexedColorMasks.cpp | 143 tcu::UVec4 c0(2, 3, 4, 5); 186 tcu::UVec4 c1(23, 23, 23, 23); 217 tcu::UVec4 e(static_cast<unsigned int>(0.15f * 255), static_cast<unsigned int>(0.30f * 255), 220 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, 242 tcu::UVec4 e(2, 3, 4, 5); 244 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, 264 tcu::UVec4 e(2, 3, 4, 5); 266 e = tcu::UVec4(e.x(), numComponents >= 2 ? e.y() : 0, numComponents >= 3 ? e.z() : 0, 409 tcu::UVec4 epsilon;
|
/external/deqp/external/openglcts/modules/gles31/ |
H A D | es31cShaderAtomicCountersTests.cpp | 41 using tcu::UVec4; 590 bool CheckCounterValues(GLuint size, UVec4* data, GLuint min_value) 1699 UVec4 data[s * s]; 2018 UVec4 data[s * s + 3]; 2025 data[s * s] = UVec4(data2[0]); 2026 data[s * s + 1] = UVec4(data2[1]); 2027 data[s * s + 2] = UVec4(data2[2]); 2038 data[s * s] = UVec4(data2[0]); 2039 data[s * s + 1] = UVec4(data2[1]); 2040 data[s * s + 2] = UVec4(data [all...] |
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
H A D | vktRenderPassMultisampleTests.cpp | 58 using tcu::UVec4; 1688 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); 1689 const UVec4 minValue (0); 1690 const UVec4 range (UVec4(1u) << tcu::min(bits, UVec4(31))); 1699 UVec4 color (minValue); 1725 if (!tcu::intThresholdCompare(m_context.getTestContext().getLog(), name.c_str(), name.c_str(), reference.getAccess(), access, UVec4(0u), tcu::COMPARE_LOG_ON_ERROR)) 1733 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); 1735 const IVec4 range ((UVec4( [all...] |
H A D | vktRenderPassMultisampleResolveTests.cpp | 58 using tcu::UVec4; 1245 const UVec4 bitDepth (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); 1246 const UVec4 renderValue (tcu::select((UVec4(1u) << tcu::min(UVec4(8u), bitDepth)) - UVec4(1u), 1247 UVec4(0u, 0u, 0u, 1u), 1249 const UVec4 clearValue (tcu::select(UVec4(0u), 1250 UVec4( [all...] |
/external/deqp/modules/gles2/functional/ |
H A D | es2fRandomFragmentOpTests.cpp | 222 tcu::UVec4 getCompareThreshold (void) const; 377 const tcu::UVec4 threshold = getCompareThreshold(); 415 tcu::UVec4 RandomFragmentOpCase::getCompareThreshold (void) const 420 return format.getColorThreshold().toIVec().asUint() + tcu::UVec4(6); // Default threshold. 423 * tcu::UVec4(5) + tcu::UVec4(2); // \note Non-scientific ad hoc formula. Need big threshold when few color bits; especially multiple blendings bring extra inaccuracy.
|
H A D | es2fBlendTests.cpp | 52 using tcu::UVec4; 272 UVec4 compareThreshold = m_context.getRenderTarget().getPixelFormat().getColorThreshold().toIVec().asUint() 273 * UVec4(5) / UVec4(2) + UVec4(3); // \note Non-scientific ad hoc formula. Need big threshold when few color bits; blending brings extra inaccuracy.
|
/external/deqp/modules/gles3/functional/ |
H A D | es3fRandomFragmentOpTests.cpp | 222 tcu::UVec4 getCompareThreshold (void) const; 377 const tcu::UVec4 threshold = getCompareThreshold(); 415 tcu::UVec4 RandomFragmentOpCase::getCompareThreshold (void) const 420 return format.getColorThreshold().toIVec().asUint() + tcu::UVec4(2); // Default threshold. 423 * tcu::UVec4(5) + tcu::UVec4(2); // \note Non-scientific ad hoc formula. Need big threshold when few color bits; especially multiple blendings bring extra inaccuracy.
|
H A D | es3fFragmentOutputTests.cpp | 60 using tcu::UVec4; 722 UVec4 maxVal (range.y()); 728 const UVec4 fmtMaxVal = ((tcu::Vector<deUint64, 4>(1) << fmtBits.cast<deUint64>())-deUint64(1)).asUint(); 733 m_testCtx.getLog() << TestLog::Message << "out" << curInVec << " value range: " << valueRangeToString(numScalars, UVec4(0), maxVal) << TestLog::EndMessage; 736 const UVec4 step = maxVal / rangeDiv.asUint(); 747 UVec4 c = step*swizzleVec(IVec4(x, y, ix, iy).asUint(), curInVec); 897 UVec4 formatThreshold; //!< Threshold computed based on format. 898 UVec4 finalThreshold; 903 case tcu::TextureFormat::FLOAT: formatThreshold = UVec4(0); break; 904 case tcu::TextureFormat::HALF_FLOAT: formatThreshold = UVec4(( [all...] |
H A D | es3fBlendTests.cpp | 53 using tcu::UVec4; 327 UVec4 compareThreshold = (m_useSrgbFbo ? tcu::PixelFormat(8, 8, 8, 8) : m_context.getRenderTarget().getPixelFormat()).getColorThreshold().toIVec().asUint() 328 * UVec4(5) / UVec4(2) + UVec4(m_useSrgbFbo ? 5 : 2); // \note Non-scientific ad hoc formula. Need big threshold when few color bits; blending brings extra inaccuracy.
|
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/ |
H A D | vktSparseResourcesImageSparseResidency.cpp | 625 const tcu::UVec4 referenceValue = tcu::UVec4(offsetX % 127u, offsetY % 127u, offsetZ % 127u, 1u); 626 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); 638 const tcu::UVec4 referenceValue = tcu::UVec4(0u, 0u, 0u, 0u); 639 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); 656 const tcu::UVec4 referenceValue = tcu::UVec4(offsetX % 127u, offsetY % 127u, offsetZ % 127u, 1u); 657 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ);
|
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/ |
H A D | vktYCbCrUtil.hpp | 170 tcu::UVec4 getYCbCrBitDepth (vk::VkFormat format); 182 const tcu::UVec4& bitDepth,
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
H A D | vktApiImageClearingTests.cpp | 188 inline bool isInClearRange (const UVec4& clearCoords, const deUint32 x, const deUint32 y, deUint32 arrayLayer = 0, tcu::Maybe<LayerRange> imageViewLayerRange = tcu::Maybe<LayerRange>(), tcu::Maybe<LayerRange> attachmentClearLayerRange = tcu::Maybe<LayerRange>()) 203 if (clearCoords == UVec4()) 379 const UVec4 resColor (access.getPixelUint(x, y, z)); 380 const UVec4 refColor (ref.uint32[0], 384 const UVec4 threshold (1); 493 tcu::TestStatus verifyResultImage (const std::string& successMessage, const UVec4& clearCoords = UVec4()) const; 1018 tcu::TestStatus ImageClearingTestInstance::verifyResultImage (const std::string& successMessage, const UVec4& clearCoords) const 1020 DE_ASSERT((clearCoords == UVec4()) || m_params.imageExtent.depth == 1u); 1280 UVec4 clearCoord [all...] |