Home
last modified time | relevance | path

Searched refs:compareThreshold (Results 1 - 25 of 27) sorted by relevance

12

/third_party/vk-gl-cts/framework/common/
H A DtcuBilinearImageCompare.cpp127 if (compareThreshold(resPix, readRGBA8(reference, x1, y1), threshold) ||
128 compareThreshold(resPix, readRGBA8(reference, x0, y1), threshold) ||
129 compareThreshold(resPix, readRGBA8(reference, x2, y1), threshold) ||
130 compareThreshold(resPix, readRGBA8(reference, x0, y0), threshold) ||
131 compareThreshold(resPix, readRGBA8(reference, x1, y0), threshold) ||
132 compareThreshold(resPix, readRGBA8(reference, x2, y0), threshold) ||
133 compareThreshold(resPix, readRGBA8(reference, x0, y2), threshold) ||
134 compareThreshold(resPix, readRGBA8(reference, x1, y2), threshold) ||
135 compareThreshold(resPix, readRGBA8(reference, x2, y2), threshold))
183 if (compareThreshold(resPi
[all...]
H A DtcuRGBA.hpp137 inline bool compareThreshold (RGBA a, RGBA b, RGBA threshold) in compareThreshold() function
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fShaderHelperInvocationTests.cpp394 const bool isBg = tcu::compareThreshold(resPix, bgRef, threshold); in verifyHelperInvocationValue()
395 const bool isFg = tcu::compareThreshold(resPix, fgRef, threshold); in verifyHelperInvocationValue()
560 if (tcu::compareThreshold(color, neighborColor, threshold)) in hasNeighborWithColor()
585 const bool isBg = tcu::compareThreshold(resPix, bgRef, isBgThreshold); in verifyHelperInvocationDerivate()
586 const bool isFg = tcu::compareThreshold(resPix, fgRef, isFgThreshold); in verifyHelperInvocationDerivate()
H A Des31fAdvancedBlendTests.cpp566 const UVec4 compareThreshold = (useFbo ? tcu::PixelFormat(8, 8, 8, 8) : m_context.getRenderTarget().getPixelFormat()).getColorThreshold().toIVec().asUint() in iterate() local
572 tcu::RGBA(compareThreshold[0], compareThreshold[1], compareThreshold[2], compareThreshold[3]), in iterate()
/third_party/vk-gl-cts/modules/glshared/
H A DglsDrawTest.cpp3474 static inline bool colorsEqual (const tcu::RGBA& colorA, const tcu::RGBA& colorB, const tcu::IVec3& compareThreshold) in colorsEqual() argument
3481 return tcu::compareThresholdMasked(colorA, colorB, tcu::RGBA(compareThreshold.x(), compareThreshold.y(), compareThreshold.z(), 0), TCU_RGBA_RGB_MASK); in colorsEqual()
3485 static bool pixelNeighborhoodContainsColor (const tcu::Surface& target, int x, int y, const tcu::RGBA& color, const tcu::IVec3& compareThreshold) in pixelNeighborhoodContainsColor() argument
3495 if (colorsEqual(color, targetCmpPixel, compareThreshold)) in pixelNeighborhoodContainsColor()
3520 static bool edgeRelaxedImageCompare (tcu::TestLog& log, const char* imageSetName, const char* imageSetDesc, const tcu::Surface& reference, const tcu::Surface& result, const tcu::IVec3& compareThreshold, const tcu::IVec3& renderTargetThreshold, int maxAllowedInvalidPixels) in edgeRelaxedImageCompare() argument
3546 const bool directMatch = colorsEqual(refPixel, screenPixel, compareThreshold); in edgeRelaxedImageCompare()
3547 const bool isOkReferencePixel = directMatch || pixelNeighborhoodContainsColor(result, x, y, refPixel, compareThreshold); // screen image has a matching pixel nearby (~= If something is drawn on reference, it must be drawn to screen too.) in edgeRelaxedImageCompare()
3548 const bool isOkScreenPixel = directMatch || pixelNeighborhoodContainsColor(reference, x, y, screenPixel, compareThreshold); // referenc in edgeRelaxedImageCompare()
3615 intersectionRelaxedLineImageCompare(tcu::TestLog& log, const char* imageSetName, const char* imageSetDesc, const tcu::Surface& reference, const tcu::Surface& result, const tcu::IVec3& compareThreshold, int maxAllowedInvalidPixels) intersectionRelaxedLineImageCompare() argument
[all...]
H A DglsVertexArrayTests.cpp1767 bool refThin = (!tcu::compareThreshold(refPixel, ref.getPixel(x-1, y ), threshold) && !tcu::compareThreshold(refPixel, ref.getPixel(x+1, y ), threshold)) || in compare()
1768 (!tcu::compareThreshold(refPixel, ref.getPixel(x , y-1), threshold) && !tcu::compareThreshold(refPixel, ref.getPixel(x , y+1), threshold)); in compare()
1769 bool screenThin = (!tcu::compareThreshold(screenPixel, screen.getPixel(x-1, y ), threshold) && !tcu::compareThreshold(screenPixel, screen.getPixel(x+1, y ), threshold)) || in compare()
1770 (!tcu::compareThreshold(screenPixel, screen.getPixel(x , y-1), threshold) && !tcu::compareThreshold(screenPixel, screen.getPixel(x , y+1), threshold)); in compare()
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fFramebufferBlitTests.cpp198 const bool signConfig = tcu::compareThreshold(baseColor, cellColorA, threshold); in compare()
223 const bool isValidColor = tcu::compareThreshold(color, cellColorA, threshold) || tcu::compareThreshold(color, cellColorB, threshold); in compare()
252 if (tcu::compareThreshold(color, cellColorA, threshold)) in compare()
254 else if (tcu::compareThreshold(color, cellColorB, threshold)) in compare()
263 if (tcu::compareThreshold(color, cellColorA, threshold)) in compare()
265 else if (tcu::compareThreshold(color, cellColorB, threshold)) in compare()
277 const bool resultSign = tcu::compareThreshold(cellColorA, color, threshold); in compare()
H A Des3fPrerequisiteTests.cpp245 bool isPixelOk = compareThreshold(refRGBA, resRGBA, colorThreshold); in iterate()
H A Des3fBlendTests.cpp327 UVec4 compareThreshold = (m_useSrgbFbo ? tcu::PixelFormat(8, 8, 8, 8) : m_context.getRenderTarget().getPixelFormat()).getColorThreshold().toIVec().asUint() in iterate() local
332 compareThreshold, tcu::COMPARE_LOG_RESULT); in iterate()
H A Des3fShaderFragDataTests.cpp94 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
H A Des3fFboMultisampleTests.cpp332 TCU_CHECK(compareThreshold(color, tcu::RGBA::green(), threshold)); in test()
H A Des3fMultisampleTests.cpp136 if (!tcu::compareThreshold(pixColor, insideColor, tcu::RGBA(3, 3, 3, 3))) // Pixel color differs from already-detected color inside same region - region not unicolored. in isPixelRegionUnicolored()
163 if (!tcu::compareThreshold(img.getPixel(x, y), refColor, tcu::RGBA(3, 3, 3, 3))) in drawUnicolorTestErrors()
608 if (tcu::compareThreshold(color, m_detectedColors[i], tcu::RGBA(3, 3, 3, 3))) in iterate()
H A Des3fPolygonOffsetTests.cpp80 inline bool compareThreshold (const tcu::IVec4& a, const tcu::IVec4& b, const tcu::IVec4& threshold) in compareThreshold() function
119 if (compareThreshold(cRef, cTest, threshold)) in compareImages()
135 if (compareThreshold(cRef, cTest, threshold)) in compareImages()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_cube_map_array/
H A DesextcTextureCubeMapArrayETC2Support.cpp352 const float compareThreshold = 0.05f; in isRenderedImageValid() local
354 compareThreshold, tcu::COMPARE_LOG_RESULT); in isRenderedImageValid()
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fBlendTests.cpp272 UVec4 compareThreshold = m_context.getRenderTarget().getPixelFormat().getColorThreshold().toIVec().asUint() in iterate() local
275 bool comparePass = tcu::intThresholdCompare(m_testCtx.getLog(), "CompareResult", "Image Comparison Result", referenceImg.getAccess(), renderedImg.getAccess(), compareThreshold, tcu::COMPARE_LOG_RESULT); in iterate()
H A Des2fPrerequisiteTests.cpp245 bool isPixelOk = compareThreshold(refRGBA, resRGBA, colorThreshold); in iterate()
H A Des2fShaderFragDataTests.cpp76 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
H A Des2fMultisampleTests.cpp134 if (!tcu::compareThreshold(pixColor, insideColor, tcu::RGBA(3, 3, 3, 3))) // Pixel color differs from already-detected color inside same region - region not unicolored. in isPixelRegionUnicolored()
161 if (!tcu::compareThreshold(img.getPixel(x, y), refColor, tcu::RGBA(3, 3, 3, 3))) in drawUnicolorTestErrors()
450 if (tcu::compareThreshold(color, m_detectedColors[i], tcu::RGBA(3, 3, 3, 3))) in iterate()
H A Des2fPolygonOffsetTests.cpp77 inline bool compareThreshold (const tcu::IVec4& a, const tcu::IVec4& b, const tcu::IVec4& threshold) in compareThreshold() function
116 if (compareThreshold(cRef, cTest, threshold)) in compareImages()
132 if (compareThreshold(cRef, cTest, threshold)) in compareImages()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/draw_buffers_indexed/
H A DesextcDrawBuffersIndexedBlending.cpp396 if (!tcu::compareThreshold(pixel, expectedColor, epsilon)) in VerifyImg()
H A DesextcDrawBuffersIndexedColorMasks.cpp432 if (!tcu::compareThreshold(pixel, expectedColor, epsilon)) in VerifyImg()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
H A DvktSpvAsmGraphicsShaderTestUtil.cpp4447 if (!tcu::compareThreshold(upperLeft, instance.outputColors[0], threshold)) in runAndVerifyDefaultPipeline()
4451 if (!tcu::compareThreshold(upperRight, instance.outputColors[1], threshold)) in runAndVerifyDefaultPipeline()
4455 if (!tcu::compareThreshold(lowerLeft, instance.outputColors[2], threshold)) in runAndVerifyDefaultPipeline()
4459 if (!tcu::compareThreshold(lowerRight, instance.outputColors[3], threshold)) in runAndVerifyDefaultPipeline()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/
H A DvktSpvAsmGraphicsShaderTestUtil.cpp4444 if (!tcu::compareThreshold(upperLeft, instance.outputColors[0], threshold)) in runAndVerifyDefaultPipeline()
4448 if (!tcu::compareThreshold(upperRight, instance.outputColors[1], threshold)) in runAndVerifyDefaultPipeline()
4452 if (!tcu::compareThreshold(lowerLeft, instance.outputColors[2], threshold)) in runAndVerifyDefaultPipeline()
4456 if (!tcu::compareThreshold(lowerRight, instance.outputColors[3], threshold)) in runAndVerifyDefaultPipeline()
/third_party/vk-gl-cts/modules/egl/
H A DteglImageFormatTests.cpp1127 const tcu::RGBA compareThreshold (32, 32, 32, 32); // layer colors are far apart, large thresholds are ok in invokeGLES()
1240 return tcu::pixelThresholdCompare(log, "Depth buffer rendering result", "Result from rendering with depth buffer", referenceScreen, screen, compareThreshold, tcu::COMPARE_LOG_RESULT); in invokeGLES()
1254 const tcu::RGBA compareThreshold (32, 32, 32, 32); // layer colors are far apart, large thresholds are ok in invokeGLES()
1358 return tcu::pixelThresholdCompare(log, "StencilResult", "Result from rendering with stencil buffer", referenceScreen, screen, compareThreshold, tcu::COMPARE_LOG_RESULT); in invokeGLES()
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcBlendEquationAdvancedTests.cpp735 bool firstOk = tcu::compareThreshold(ref, res, threshold);
1076 bool pixelOk = tcu::compareThreshold(ref, res, threshold);

Completed in 70 milliseconds

12