Home
last modified time | relevance | path

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

12345

/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.
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);
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;
776 inline UVec4 clampedRGBA (const IVec4& rgba) in clampedRGBA()
778 return UVec4(de::clamp(rgba.x(), 0, 0xff), in clampedRGBA()
799 void decodeHDREndpointMode7 (UVec4& e0, UVec4& e1, deUint32 v0, deUint32 v1, deUint32 v2, deUint32 … in decodeHDREndpointMode7()
867 e0 = UVec4(de::clamp(red - scale, 0, 0xfff), in decodeHDREndpointMode7()
872 e1 = UVec4(de::clamp(red, 0, 0xfff), in decodeHDREndpointMode7()
878 void decodeHDREndpointMode11 (UVec4& e0, UVec4& e1, deUint32 v0, deUint32 v1, deUint32 v2, deUint32… in decodeHDREndpointMode11()
884 e0 = UVec4(v0<<4, v2<<4, getBits(v4,0,6)<<5, 0x780); in decodeHDREndpointMode11()
885 e1 = UVec4(v1<<4, v3<<4, getBits(v5,0,6)<<5, 0x780); in decodeHDREndpointMode11()
[all …]
DtcuTextureUtil.cpp77 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 …]
DtcuVectorType.hpp51 typedef Vector<deUint32, 4> UVec4; typedef
/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/vulkancts/modules/vulkan/renderpass/
DvktRenderPassMultisampleTests.cpp58 using tcu::UVec4;
1671 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterate()
1672 const UVec4 minValue (0); in iterate()
1673 const UVec4 range (UVec4(1u) << tcu::min(bits, UVec4(31))); in iterate()
1682 UVec4 color (minValue); in iterate()
1708 …xt().getLog(), name.c_str(), name.c_str(), reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterate()
1716 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterate()
1718 const IVec4 range ((UVec4(1u) << tcu::min(bits, UVec4(30))).cast<deInt32>()); in iterate()
1753 …xt().getLog(), name.c_str(), name.c_str(), reference.getAccess(), access, UVec4(0u), tcu::COMPARE_… in iterate()
1764 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in iterate()
[all …]
DvktRenderPassMultisampleResolveTests.cpp58 using tcu::UVec4;
1245 const UVec4 bitDepth (tcu::getTextureFormatBitDepth(format).cast<deUint32>()); in verify()
1246 … const UVec4 renderValue (tcu::select((UVec4(1u) << tcu::min(UVec4(8u), bitDepth)) - UVec4(1u), in verify()
1247 UVec4(0u, 0u, 0u, 1u), in verify()
1249 const UVec4 clearValue (tcu::select(UVec4(0u), in verify()
1250 UVec4(0u, 0u, 0u, 1u), in verify()
1260 const UVec4 refColor (m_sampleMask == 0x0u in verify()
1284 const UVec4 color (accesses[attachmentNdx].getPixelUint(x, y)); in verify()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
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()
DvktPipelineClearUtil.hpp38 tcu::UVec4 defaultClearColorUint (const tcu::TextureFormat& format);
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesImageSparseResidency.cpp598 … const tcu::UVec4 referenceValue = tcu::UVec4(offsetX % 127u, offsetY % 127u, offsetZ % 127u, 1u); in iterate()
599 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); in iterate()
611 const tcu::UVec4 referenceValue = tcu::UVec4(0u, 0u, 0u, 0u); in iterate()
612 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); in iterate()
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()
/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()
Des3fFragmentOutputTests.cpp60 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 …]
Des3fBlendTests.cpp53 using tcu::UVec4;
327UVec4 compareThreshold = (m_useSrgbFbo ? tcu::PixelFormat(8, 8, 8, 8) : m_context.getRenderTarget(… in iterate()
328 …* UVec4(5) / UVec4(2) + UVec4(m_useSrgbFbo ? 5 : 2); // \note Non-scientific ad hoc formula. Need … in iterate()
Des3fFboTestUtil.cpp125 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); in shadeFragments()
224 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); in shadeFragments()
411 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); in shadeFragments()
549 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); in shadeFragments()
657 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); in shadeFragments()
765 const tcu::UVec4 uicolor = castVectorSaturate<deUint32>(color); in shadeFragments()
843 const tcu::UVec4 uicolor (castVectorSaturate<deUint32>(color)); in shadeFragments()
/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()
Des2fBlendTests.cpp52 using tcu::UVec4;
272UVec4 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/api/
DvktApiImageClearingTests.cpp187 inline bool isInClearRange (const UVec4& clearCoords, const deUint32 x, const deUint32 y, deUint32 … in isInClearRange()
201 if (clearCoords == UVec4()) in isInClearRange()
377 const UVec4 resColor (access.getPixelUint(x, y, z)); in comparePixelToColorClearValue()
378 const UVec4 refColor (ref.uint32[0], in comparePixelToColorClearValue()
382 const UVec4 threshold (1); in comparePixelToColorClearValue()
491 …verifyResultImage (const std::string& successMessage, const UVec4& clearCoords = UVec4()) const;
1018 …TestInstance::verifyResultImage (const std::string& successMessage, const UVec4& clearCoords) const in verifyResultImage()
1020 DE_ASSERT((clearCoords == UVec4()) || m_params.imageExtent.depth == 1u); in verifyResultImage()
1280 UVec4 clearCoords; in iterate()
1304 clearCoords = UVec4(clearX, clearY, in iterate()
[all …]
/external/deqp/modules/egl/
DteglNativeColorMappingTests.cpp250 …const tcu::UVec4 eglBitDepth((deUint32)eglu::getConfigAttribInt(egl, display, config, EGL_RED_SIZE… in validate()
255 const tcu::UVec4 nativeBitDepth(tcu::getTextureFormatBitDepth(result.getFormat()).asUint()); in validate()
256 const tcu::UVec4 bitDepth(deMinu32(nativeBitDepth.x(), eglBitDepth.x()), in validate()
261 const tcu::UVec4 uColor = tcu::UVec4((deUint32)((float)((1u << bitDepth.x()) - 1u) * color.x()), in validate()
274 …pare", "Compare results", reference.getAccess(), result.getAccess(), tcu::UVec4(1u, 1u, 1u, (bitDe… in validate()
/external/deqp/modules/gles31/functional/
Des31fAdvancedBlendTests.cpp59 using tcu::UVec4;
549 …const UVec4 compareThreshold = (useFbo ? tcu::PixelFormat(8, 8, 8, 8) : m_context.getRenderTarget(… in iterate()
550 * UVec4(5) / UVec4(2) + UVec4(3 * m_overdrawCount); in iterate()
/external/deqp/modules/glshared/
DglsScissorTests.cpp70 using tcu::UVec4;
198 const tcu::Vec4 threshold = 0.02f * UVec4(1u << de::max(0, 8 - renderFormat.redBits), in iterate()
707 …log, "ComparisonResult", "Image comparison result", refAccess, resAccess, UVec4(2, 2, 2, 2), tcu::… in iterate()
711 …clearEdges(refAccess, UVec4(baseColor.u[0], baseColor.u[1], baseColor.u[2], baseColor.u[3]), sciss… in iterate()
712 …log, "ComparisonResult", "Image comparison result", refAccess, resAccess, UVec4(2, 2, 2, 2), tcu::… in iterate()
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrConversionTests.cpp65 using tcu::UVec4;
90 UVec4 getBitDepth (vk::VkFormat format) in getBitDepth()
101 return UVec4(8, 8, 8, 0); in getBitDepth()
104 return UVec4(10, 0, 0, 0); in getBitDepth()
107 return UVec4(10, 10, 0, 0); in getBitDepth()
110 return UVec4(10, 10, 10, 10); in getBitDepth()
119 return UVec4(10, 10, 10, 0); in getBitDepth()
122 return UVec4(12, 0, 0, 0); in getBitDepth()
125 return UVec4(12, 12, 0, 0); in getBitDepth()
135 return UVec4(12, 12, 12, 12); in getBitDepth()
[all …]

12345