Fix a potential "hang" in ARB_sparse_buffer test
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 28 Mar 2017 07:53:58 +0000 (09:53 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 31 Mar 2017 15:51:43 +0000 (11:51 -0400)
commitd1a13c19f6e9b5120d40848fb289d2e47f2b8ca9
tree31ba29bebc71bd239d2a53745619cbe41e8f818b
parent0fb87bc5fdfb83cb21d36ed190babdeef6a81391
Fix a potential "hang" in ARB_sparse_buffer test

Reading indirect compute dispatch arguments from non-committed memory
is a bad idea because those reads are undefined. This can lead to
huge dispatches that cause the test to run for an excessively long
time and seem as if it hung the GPU.

Affects:
GL45-CTS.sparse_buffer_tests.BufferStorageTest

Components: OpenGL
VK-GL-CTS issue: 332

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