Fix memory corruption vktApiObjectManagementTests
authorBoris Zanin <boris.zanin@mobica.com>
Thu, 7 Sep 2017 11:08:20 +0000 (13:08 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 15 Sep 2017 19:43:52 +0000 (15:43 -0400)
commitb53064a8571c9f55d32c070e1cd6d46263f3fd1f
tree5e86ffa2f6ae486de707400d6b4b22fd2b2a2a75
parent5937040a5cf1e0ce14e045346c585240af11e48e
Fix memory corruption vktApiObjectManagementTests

Due to s_deviceCases is declared as non-static arrays the pointers
to these structures cannot be included into static arrays such as
s_createSingleGroup, s_createMultipleUniqueResourcesGroup, etc.

During second call references in arrays like s_createSingleGroup,
s_createMultipleUniqueResourcesGroup, etc will point to invalid
memory and most likely will lead to crash.

Fix: make dependend structures also non-static.

Update tests:
 * dEQP-VK.api.object_management.*

Components: Vulkan

VK-GL-CTS issue: 674

Change-Id: I23ace5fe0bcdd1db9400fc8437218941a045cf25
external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp