Fix deinit of gl sparse buffer test
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 31 Mar 2022 20:50:41 +0000 (16:50 -0400)
committerRicardo Garcia <rgarcia@igalia.com>
Mon, 25 Apr 2022 09:26:05 +0000 (11:26 +0200)
deinit here is expected to uncommit the range that was committed by
init, so use the same range that was used by init.

Affects:
KHR-GL46.sparse_buffer_tests.BufferStorageTest

Components: OpenGL
VK-GL-CTS issue: 3653

Change-Id: I0adce28475c4eab48a8fb6b0aa538b7c016f435b

external/openglcts/modules/gl/gl4cSparseBufferTests.cpp

index 1d9a47a..dc92bef 100644 (file)
@@ -885,8 +885,8 @@ void AtomicCounterBufferStorageTestCase::deinitTestCaseIteration()
                m_gl.bindBuffer(GL_ARRAY_BUFFER, m_sparse_bo);
                GLU_EXPECT_NO_ERROR(m_gl.getError(), "glBindBuffer() call failed.");
 
-               m_gl.bufferPageCommitmentARB(GL_ARRAY_BUFFER, 0,                                  /* offset */
-                                                                        m_helper_bo_size_rounded, GL_FALSE); /* commit */
+               m_gl.bufferPageCommitmentARB(GL_ARRAY_BUFFER, m_sparse_bo_data_start_offset_rounded,            /* offset */
+                                                                        m_sparse_bo_data_size_rounded, GL_FALSE); /* commit */
                GLU_EXPECT_NO_ERROR(m_gl.getError(), "glBufferPageCommitmentARB() call failed.");
 
                m_sparse_bo = 0;