Increase threshold in ES2 frag op and buffer tests am: ce69f90677
am: eecffcfa8a
* commit 'eecffcfa8a55cd52895727f16f7487e749e9a3a8':
Increase threshold in ES2 frag op and buffer tests
diff --git a/modules/gles2/functional/es2fBufferTestUtil.cpp b/modules/gles2/functional/es2fBufferTestUtil.cpp
index 59360d3..2bf7567 100644
--- a/modules/gles2/functional/es2fBufferTestUtil.cpp
+++ b/modules/gles2/functional/es2fBufferTestUtil.cpp
@@ -414,7 +414,7 @@
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;
diff --git a/modules/gles2/functional/es2fRandomFragmentOpTests.cpp b/modules/gles2/functional/es2fRandomFragmentOpTests.cpp
index 847cf37..3f8b707 100644
--- a/modules/gles2/functional/es2fRandomFragmentOpTests.cpp
+++ b/modules/gles2/functional/es2fRandomFragmentOpTests.cpp
@@ -417,7 +417,7 @@
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.