X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=modules%2Fegl%2FteglColorClearCase.cpp;h=92cbd8f1f96c6af09ecfa43d3b6413975c1a60bd;hb=d2e6706ec45918d2ea32293fb5228c44584289fb;hp=e2006cba640f85f20f693c9c81eeac3ff658fc59;hpb=b275e16083a18747902434233f4a6cc78e1e213f;p=platform%2Fupstream%2FVK-GL-CTS.git diff --git a/modules/egl/teglColorClearCase.cpp b/modules/egl/teglColorClearCase.cpp index e2006cb..92cbd8f 100644 --- a/modules/egl/teglColorClearCase.cpp +++ b/modules/egl/teglColorClearCase.cpp @@ -244,7 +244,8 @@ void SingleThreadColorClearCase::executeForContexts (EGLDisplay display, EGLSurf // Compare images { - bool imagesOk = tcu::pixelThresholdCompare(log, "ComparisonResult", "Image comparison result", refFrame, frame, RGBA(1,1,1,1) + pixelFmt.getColorThreshold(), tcu::COMPARE_LOG_RESULT); + tcu::RGBA eps = pixelFmt.alphaBits == 1 ? RGBA(1,1,1,127) : RGBA(1,1,1,1); + bool imagesOk = tcu::pixelThresholdCompare(log, "ComparisonResult", "Image comparison result", refFrame, frame, eps + pixelFmt.getColorThreshold(), tcu::COMPARE_LOG_RESULT); if (!imagesOk) m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Image comparison failed"); @@ -309,6 +310,7 @@ public: // Signal completion. packetIter->signal->increment(); } + m_egl.releaseThread(); } private: @@ -430,7 +432,8 @@ void MultiThreadColorClearCase::executeForContexts (EGLDisplay display, EGLSurfa // Compare images { - bool imagesOk = tcu::pixelThresholdCompare(log, "ComparisonResult", "Image comparison result", refFrame, frame, RGBA(1,1,1,1) + pixelFmt.getColorThreshold(), tcu::COMPARE_LOG_RESULT); + tcu::RGBA eps = pixelFmt.alphaBits == 1 ? RGBA(1,1,1,127) : RGBA(1,1,1,1); + bool imagesOk = tcu::pixelThresholdCompare(log, "ComparisonResult", "Image comparison result", refFrame, frame, eps + pixelFmt.getColorThreshold(), tcu::COMPARE_LOG_RESULT); if (!imagesOk) m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Image comparison failed");