Increase blend test comparison threshold.
authorMika Isojärvi <misojarvi@google.com>
Tue, 14 Apr 2015 20:26:23 +0000 (13:26 -0700)
committerMika Isojärvi <misojarvi@google.com>
Tue, 14 Apr 2015 20:29:33 +0000 (13:29 -0700)
Bug: 20177230
Change-Id: I7a057410c718aa46a0a3dc6fbaac9540bd46f030

modules/gles2/functional/es2fBlendTests.cpp

index 029970eb8611421f390d6946122fadb28814ed11..3e941a1626868f0e6c02af9a3764f335c60f33ae 100644 (file)
@@ -265,7 +265,7 @@ BlendCase::IterateResult BlendCase::iterate (void)
        // Compare images.
 
        UVec4 compareThreshold = m_context.getRenderTarget().getPixelFormat().getColorThreshold().toIVec().asUint()
-                                                        * UVec4(5) / UVec4(2) + UVec4(2); // \note Non-scientific ad hoc formula. Need big threshold when few color bits; blending brings extra inaccuracy.
+                                                        * UVec4(5) / UVec4(2) + UVec4(3); // \note Non-scientific ad hoc formula. Need big threshold when few color bits; blending brings extra inaccuracy.
 
        bool comparePass = tcu::intThresholdCompare(m_testCtx.getLog(), "CompareResult", "Image Comparison Result", m_refColorBuffer->getAccess(), renderedImg.getAccess(), compareThreshold, tcu::COMPARE_LOG_RESULT);