Fix tests in dEQP-EGL.functional.robustness*
authorJames Glanville <james.glanville@imgtec.com>
Wed, 22 Mar 2017 14:02:48 +0000 (14:02 +0000)
committerPyry Haulos <phaulos@google.com>
Thu, 23 Mar 2017 22:25:48 +0000 (15:25 -0700)
The shader storage buffer used for compute was not
correctly bound. This caused glDispatchCompute()
to return an error instead of submitting work, so
the context would never reset.

Affects:
dEQP-EGL.functional.robustness*compute
Components: AOSP
Google bug: 36565815

Change-Id: I4fb807b49ab806c7de968b54b8e5fd5abfd87fcd
(cherry picked from commit a7a065346ffe38a895c461b638f2c6377cbd7bcf)

modules/egl/teglRobustnessTests.cpp

index 321fe78..269b866 100644 (file)
@@ -853,7 +853,7 @@ void InfiniteLoop::setup (void)
                GLU_CHECK_GLW_CALL(m_gl, genBuffers(1, &m_outputBuffer));
                GLU_CHECK_GLW_CALL(m_gl, bindBuffer(GL_SHADER_STORAGE_BUFFER, m_outputBuffer));
                GLU_CHECK_GLW_CALL(m_gl, bufferData(GL_SHADER_STORAGE_BUFFER, sizeof(int), DE_NULL, GL_DYNAMIC_DRAW));
-               GLU_CHECK_GLW_CALL(m_gl, bindBuffer(GL_SHADER_STORAGE_BUFFER, 0));
+               GLU_CHECK_GLW_CALL(m_gl, bindBufferBase(GL_SHADER_STORAGE_BUFFER, 0, m_outputBuffer));
        }
        else
        {