Fix issues in the multiview tests
authorAlexander Galazin <alexander.galazin@arm.com>
Mon, 5 Feb 2018 08:36:46 +0000 (09:36 +0100)
committerAlexander Galazin <alexander.galazin@arm.com>
Mon, 5 Feb 2018 11:58:03 +0000 (12:58 +0100)
 * Fix few asserts
 * Add forgotten TestLog::EndSection

Components: AOSP

Affects: dEQP-GLES3.functional.mulitiview.*

Change-Id: Ieb7d09beace12ce7f00e6d9cddacea2465101cca

modules/gles3/functional/es3fMultiviewTests.cpp

index 09cf487c926737d6bb2178e37af0d084ea936f03..fefa701433427b3efe7a278bbc5a761a365442c8 100644 (file)
@@ -188,7 +188,7 @@ void MultiviewCase::init()
 
        m_multiviewProgram = new glu::ShaderProgram(
                m_context.getRenderContext(), glu::makeVtxFragSources(multiviewVertexShader, multiviewFragmentShader));
-       DE_ASSERT(!m_multiviewProgram);
+       DE_ASSERT(m_multiviewProgram);
        if (!m_multiviewProgram->isOk())
        {
                m_testCtx.getLog() << *m_multiviewProgram;
@@ -219,7 +219,7 @@ void MultiviewCase::init()
 
        m_finalProgram = new glu::ShaderProgram(m_context.getRenderContext(),
                                                                                        glu::makeVtxFragSources(finalVertexShader, finalFragmentShader));
-       DE_ASSERT(!m_finalProgram);
+       DE_ASSERT(m_finalProgram);
        if (!m_finalProgram->isOk())
        {
                m_testCtx.getLog() << *m_finalProgram;
@@ -267,6 +267,8 @@ MultiviewCase::IterateResult MultiviewCase::iterate()
                return STOP;
        }
 
+       log << TestLog::EndSection;
+
        // Draw full screen quad into the multiview framebuffer.
        // The quad should be instanced into both layers of the array texture.