Allow XXX_framebuffer_no_attachments limits to exceed texture limits.
authorJarkko Pöyry <jpoyry@google.com>
Tue, 9 Jun 2015 21:22:13 +0000 (14:22 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Tue, 9 Jun 2015 21:41:27 +0000 (14:41 -0700)
Bug: 21732003
Change-Id: Ic242ce22c19751629fe90225328e3317968dd076

modules/gles31/functional/es31fIntegerStateQueryTests.cpp

index 24a5f25..775b7d1 100644 (file)
@@ -369,14 +369,19 @@ FramebufferMinimumValueCase::IterateResult FramebufferMinimumValueCase::iterate
        gl.enableLogging(true);
 
        {
-               const tcu::ScopedLogSection     section(m_testCtx.getLog(), "Minimum", "Minimum is " + de::toString(m_minValue));
+               const tcu::ScopedLogSection     section(m_testCtx.getLog(), "Minimum", "Specified minimum is " + de::toString(m_minValue));
 
                verifyStateIntegerMin(result, gl, m_target, m_minValue, m_verifierType);
        }
        {
-               const tcu::ScopedLogSection     section(m_testCtx.getLog(), "Ties", "Tied to " + de::toString(glu::getGettableStateStr(m_tiedTo)));
+               const tcu::ScopedLogSection                             section         (m_testCtx.getLog(), "Ties", "The limit is tied to the value of " + de::toString(glu::getGettableStateStr(m_tiedTo)));
+               StateQueryMemoryWriteGuard<glw::GLint>  tiedToValue;
 
-               verifyStateIntegerEqualToOther(result, gl, m_target, m_tiedTo, m_verifierType);
+               gl.glGetIntegerv(m_tiedTo, &tiedToValue);
+               GLS_COLLECT_GL_ERROR(result, gl.glGetError(), "glGetIntegerv");
+
+               if (tiedToValue.verifyValidity(result))
+                       verifyStateIntegerMin(result, gl, m_target, tiedToValue, m_verifierType);
        }
 
        result.setTestContextResult(m_testCtx);