Fix sparse buffer test for atomics
authorJames Helferty <jhelferty@nvidia.com>
Wed, 26 Jul 2017 17:16:07 +0000 (13:16 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 22 Aug 2017 07:42:02 +0000 (03:42 -0400)
commit6c800c9c7748c095989fea19602fa465e3bbfdf6
tree195f145c9eaa87b50ca1ab1f4f5cc78d7402bbd5
parentb5701a42bf4c087e61b5d8e92d56cb81f6c9ad2d
Fix sparse buffer test for atomics

When binding a buffer for an array of atomics, the buffer size needs
to be large enough to cover the entire array, or else you will get
undefined behavior. For the atomic buffer case where using
glBindBufferRange to bind only part of the sparse buffer, we were
only providing a size argument large enough for half of the array.

VK-GL-CTS issue 595
Components: OpenGL

Affects:
KHR-GL43.sparse_buffer_tests.BufferStorageTest
KHR-GL44.sparse_buffer_tests.BufferStorageTest
KHR-GL45.sparse_buffer_tests.BufferStorageTest

Change-Id: I8e0a67619801a6071cf53374ae9f06672782dfa0
external/openglcts/modules/gl/gl4cSparseBufferTests.cpp