Fix memory corruption vktApiObjectManagementTests
authorBoris Zanin <boris.zanin@mobica.com>
Thu, 7 Sep 2017 08:18:07 +0000 (10:18 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 26 Sep 2017 13:01:58 +0000 (09:01 -0400)
commit70de0c5cb3693daf3214a759296d26010a8486fc
tree2c8c90fe301d5bdccffc5a888bd1d3748b64abc4
parent1fad3774963a28bfeadde131a1385525a0e24bb5
Fix memory corruption vktApiObjectManagementTests

Due to s_deviceCases, s_deviceGroupCases are 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: I83732c243f407d620f3d612c4f10435965e36080
external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp