/external/deqp/modules/internal/ |
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/ |
vktPipelineClearUtil.hpp | 38 tcu::UVec4 defaultClearColorUint (const tcu::TextureFormat& format);
|
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/ |
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;
|
rrFragmentOperations.hpp | 85 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const tcu::UVec4& value, const WindowRectangle& rect);
|
/external/deqp/framework/common/ |
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);
|
tcuVectorType.hpp | 51 typedef Vector<deUint32, 4> UVec4;
|
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);
|
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);
|
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& threshold, CompareLogMode logMode [all...] |
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& e1, deUint32 v0, deUint32 v1, deUint32 v2, deUint32 v3, deUint32 v4, deUint32 v5 [all...] |
tcuTextureUtil.cpp | 77 Vec4 sRGB8ToLinear (const UVec4& cs) 85 Vec4 sRGBA8ToLinear (const UVec4& cs) 497 UVec4 getFormatMaxUintValue (const TextureFormat& format) 503 return UVec4(1023u, 1023u, 1023u, 3u); 507 case TextureFormat::UNSIGNED_INT8: return UVec4(std::numeric_limits<deUint8>::max()); 508 case TextureFormat::UNSIGNED_INT16: return UVec4(std::numeric_limits<deUint16>::max()); 509 case TextureFormat::UNSIGNED_INT24: return UVec4(0xffffffu); 510 case TextureFormat::UNSIGNED_INT32: return UVec4(std::numeric_limits<deUint32>::max()); 514 return UVec4(0); 776 void clear (const PixelBufferAccess& access, const UVec4& color [all...] |
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
vktRenderPassMultisampleTests.cpp | 58 using tcu::UVec4; [all...] |
vktRenderPassMultisampleResolveTests.cpp | 58 using tcu::UVec4; [all...] |
/external/deqp/modules/gles2/functional/ |
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.
|
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/ |
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.
|
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((1<<(23-10))); break [all...] |
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.
|
es3fFboTestUtil.cpp | 125 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); 224 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); 411 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); 549 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); 657 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); 765 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); 843 const tcu::UVec4 uicolor (castVectorSaturate<deUint32>(color)); [all...] |
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/ |
vktSparseResourcesImageSparseResidency.cpp | 598 const tcu::UVec4 referenceValue = tcu::UVec4(offsetX % 127u, offsetY % 127u, offsetZ % 127u, 1u); 599 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); 611 const tcu::UVec4 referenceValue = tcu::UVec4(0u, 0u, 0u, 0u); 612 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); 629 const tcu::UVec4 referenceValue = tcu::UVec4(offsetX % 127u, offsetY % 127u, offsetZ % 127u, 1u); 630 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ);
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
vktApiImageClearingTests.cpp | 187 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>()) 201 if (clearCoords == UVec4()) 377 const UVec4 resColor (access.getPixelUint(x, y, z)); 378 const UVec4 refColor (ref.uint32[0], 382 const UVec4 threshold (1); 491 tcu::TestStatus verifyResultImage (const std::string& successMessage, const UVec4& clearCoords = UVec4()) const; [all...] |
/external/deqp/modules/egl/ |
teglNativeColorMappingTests.cpp | 250 const tcu::UVec4 eglBitDepth((deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_RED_SIZE), 255 const tcu::UVec4 nativeBitDepth(tcu::getTextureFormatBitDepth(result.getFormat()).asUint()); 256 const tcu::UVec4 bitDepth(deMinu32(nativeBitDepth.x(), eglBitDepth.x()), 261 const tcu::UVec4 uColor = tcu::UVec4((deUint32)((float)((1u << bitDepth.x()) - 1u) * color.x()), 274 return tcu::intThresholdCompare(log, "Result compare", "Compare results", reference.getAccess(), result.getAccess(), tcu::UVec4(1u, 1u, 1u, (bitDepth.w() > 0 ? 1u : std::numeric_limits<deUint32>::max())), tcu::COMPARE_LOG_RESULT);
|
/external/deqp/modules/gles31/functional/ |
es31fAdvancedBlendTests.cpp | 59 using tcu::UVec4; 549 const UVec4 compareThreshold = (useFbo ? tcu::PixelFormat(8, 8, 8, 8) : m_context.getRenderTarget().getPixelFormat()).getColorThreshold().toIVec().asUint() 550 * UVec4(5) / UVec4(2) + UVec4(3 * m_overdrawCount);
|
/external/deqp/modules/glshared/ |
glsScissorTests.cpp | 70 using tcu::UVec4; 198 const tcu::Vec4 threshold = 0.02f * UVec4(1u << de::max(0, 8 - renderFormat.redBits), 707 resultOk = tcu::intThresholdCompare(log, "ComparisonResult", "Image comparison result", refAccess, resAccess, UVec4(2, 2, 2, 2), tcu::COMPARE_LOG_RESULT); 711 clearEdges(refAccess, UVec4(baseColor.u[0], baseColor.u[1], baseColor.u[2], baseColor.u[3]), scissorArea); 712 resultOk = tcu::intThresholdCompare(log, "ComparisonResult", "Image comparison result", refAccess, resAccess, UVec4(2, 2, 2, 2), tcu::COMPARE_LOG_RESULT);
|