/third_party/vk-gl-cts/framework/common/ |
H A D | tcuBilinearImageCompare.cpp | 127 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 D | tcuRGBA.hpp | 137 inline bool compareThreshold (RGBA a, RGBA b, RGBA threshold) in compareThreshold() function
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fShaderHelperInvocationTests.cpp | 394 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 D | es31fAdvancedBlendTests.cpp | 566 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 D | glsDrawTest.cpp | 3474 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 D | glsVertexArrayTests.cpp | 1767 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 D | es3fFramebufferBlitTests.cpp | 198 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 D | es3fPrerequisiteTests.cpp | 245 bool isPixelOk = compareThreshold(refRGBA, resRGBA, colorThreshold); in iterate()
|
H A D | es3fBlendTests.cpp | 327 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 D | es3fShaderFragDataTests.cpp | 94 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
|
H A D | es3fFboMultisampleTests.cpp | 332 TCU_CHECK(compareThreshold(color, tcu::RGBA::green(), threshold)); in test()
|
H A D | es3fMultisampleTests.cpp | 136 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 D | es3fPolygonOffsetTests.cpp | 80 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 D | esextcTextureCubeMapArrayETC2Support.cpp | 352 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 D | es2fBlendTests.cpp | 272 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 D | es2fPrerequisiteTests.cpp | 245 bool isPixelOk = compareThreshold(refRGBA, resRGBA, colorThreshold); in iterate()
|
H A D | es2fShaderFragDataTests.cpp | 76 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
|
H A D | es2fMultisampleTests.cpp | 134 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 D | es2fPolygonOffsetTests.cpp | 77 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 D | esextcDrawBuffersIndexedBlending.cpp | 396 if (!tcu::compareThreshold(pixel, expectedColor, epsilon)) in VerifyImg()
|
H A D | esextcDrawBuffersIndexedColorMasks.cpp | 432 if (!tcu::compareThreshold(pixel, expectedColor, epsilon)) in VerifyImg()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
H A D | vktSpvAsmGraphicsShaderTestUtil.cpp | 4447 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 D | vktSpvAsmGraphicsShaderTestUtil.cpp | 4444 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 D | teglImageFormatTests.cpp | 1127 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 D | glcBlendEquationAdvancedTests.cpp | 735 bool firstOk = tcu::compareThreshold(ref, res, threshold); 1076 bool pixelOk = tcu::compareThreshold(ref, res, threshold);
|