Increase threshold in ES2 frag op and buffer tests am: ce69f90677
authorPyry Haulos <phaulos@google.com>
Thu, 10 Mar 2016 20:08:32 +0000 (20:08 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Thu, 10 Mar 2016 20:08:32 +0000 (20:08 +0000)
am: eecffcfa8a

* commit 'eecffcfa8a55cd52895727f16f7487e749e9a3a8':
  Increase threshold in ES2 frag op and buffer tests

modules/gles2/functional/es2fBufferTestUtil.cpp
modules/gles2/functional/es2fRandomFragmentOpTests.cpp

index 59360d3..2bf7567 100644 (file)
@@ -414,7 +414,7 @@ bool VertexArrayVerifier::verify (deUint32 buffer, const deUint8* refPtr, int of
        int                                                     maxQuadsPerBatch        = maxQuadsX*maxQuadsY;
        int                                                     numVerified                     = 0;
        deUint32                                        program                         = m_program->getProgram();
-       tcu::RGBA                                       threshold                       = renderTarget.getPixelFormat().getColorThreshold() + tcu::RGBA(3,3,3,3);
+       tcu::RGBA                                       threshold                       = renderTarget.getPixelFormat().getColorThreshold() + tcu::RGBA(4,4,4,4);
        bool                                            isOk                            = true;
 
        vector<tcu::Vec2>                       positions;
index 847cf37..3f8b707 100644 (file)
@@ -417,7 +417,7 @@ tcu::UVec4 RandomFragmentOpCase::getCompareThreshold (void) const
        tcu::PixelFormat format = m_context.getRenderTarget().getPixelFormat();
 
        if (format == tcu::PixelFormat(8, 8, 8, 8) || format == tcu::PixelFormat(8, 8, 8, 0))
-               return format.getColorThreshold().toIVec().asUint() + tcu::UVec4(2); // Default threshold.
+               return format.getColorThreshold().toIVec().asUint() + tcu::UVec4(6); // Default threshold.
        else
                return format.getColorThreshold().toIVec().asUint()
                           * 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.