Check ssbo limits properly in opaque indexing tests.
authorMika Isojärvi <misojarvi@google.com>
Tue, 26 Jan 2016 21:06:28 +0000 (13:06 -0800)
committerMika Isojärvi <misojarvi@google.com>
Tue, 26 Jan 2016 21:06:28 +0000 (13:06 -0800)
Bug: 22949223
Change-Id: Ib6010bd685434538ba8295b8b687052e785407d2

modules/gles31/functional/es31fOpaqueTypeIndexingTests.cpp

index e31091b..88c4c3b 100644 (file)
@@ -705,7 +705,7 @@ void BlockArrayIndexingCase::init (void)
                gl.getIntegerv(limitPnames[m_shaderType], &maxBlocks);
                GLU_EXPECT_NO_ERROR(gl.getError(), "glGetIntegerv()");
 
-               if (maxBlocks < m_numInstances)
+               if (maxBlocks < 2 + m_numInstances)
                        throw tcu::NotSupportedError("Not enough shader storage blocks supported for shader type");
        }
 }