Lower correlation threshold in flush-finish tests again am: 6455e6f987 am: 84373d7748...
[platform/upstream/VK-GL-CTS.git] / modules / egl / teglGLES2SharingThreadedTests.cpp
index 91f32cc..a51a674 100644 (file)
@@ -2148,7 +2148,7 @@ void GLES2SharingRandomTest::init (void)
        };
 
        m_eglDisplay    = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay());
-       m_eglConfig     = eglu::chooseSingleConfig(egl, m_eglDisplay, attribList);
+       m_eglConfig             = eglu::chooseSingleConfig(egl, m_eglDisplay, attribList);
 
        m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0));
 
@@ -2868,7 +2868,7 @@ tcu::TestCase::IterateResult GLES2SharingRandomTest::iterate (void)
 
                while (true)
                {
-                       int             firstThread = -1;
+                       int                     firstThread = -1;
 
                        // Find first thread with messages
                        for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++)
@@ -3038,7 +3038,7 @@ void GLES2ThreadedSharingTest::init (void)
        };
 
        m_eglDisplay    = eglu::getAndInitDisplay(m_eglTestCtx.getNativeDisplay());
-       m_eglConfig     = eglu::chooseSingleConfig(egl, m_eglDisplay, attribList);
+       m_eglConfig             = eglu::chooseSingleConfig(egl, m_eglDisplay, attribList);
 
        m_eglTestCtx.initGLFunctions(&m_gl, glu::ApiType::es(2,0));
 
@@ -3642,7 +3642,9 @@ tcu::TestCase::IterateResult GLES2ThreadedSharingTest::iterate (void)
                int readyThreads = 0;
                for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++)
                {
-                       if (m_threads[threadNdx]->getStatus() != tcu::ThreadUtil::Thread::THREADSTATUS_RUNNING)
+                       const tcu::ThreadUtil::Thread::ThreadStatus status = m_threads[threadNdx]->getStatus();
+
+                       if (status != tcu::ThreadUtil::Thread::THREADSTATUS_RUNNING && status != tcu::ThreadUtil::Thread::THREADSTATUS_NOT_STARTED)
                                readyThreads++;
                }
 
@@ -3681,7 +3683,7 @@ tcu::TestCase::IterateResult GLES2ThreadedSharingTest::iterate (void)
 
                while (true)
                {
-                       int             firstThread = -1;
+                       int                     firstThread = -1;
 
                        // Find first thread with messages
                        for (int threadNdx = 0; threadNdx < (int)m_threads.size(); threadNdx++)