Fix memory commitment tests for devices with no lazily allocated memory
authorRicardo Garcia <rgarcia@igalia.com>
Fri, 21 Jun 2019 09:30:02 +0000 (11:30 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 3 Jul 2019 09:37:26 +0000 (05:37 -0400)
commit2900375b13ee85dd05ecbc9a571229883acc01b6
tree38471b2024b2765fc7e20b1afad7e4b98de79b83
parentf1899aec756338e65d5adb630cc7aa3053316396
Fix memory commitment tests for devices with no lazily allocated memory

Make every memory commitment test fail with NotSupportedError when the
physical device does not support lazily allocated memory.

In addition, check memoryTypeCount and memoryHeapCount in every call to
getPhysicalDeviceMemoryProperties so as to be able to iterate safely
over the result later.

Affected tests:
dEQP-VK.api.get_memory_commitment.*

Components: Framework, Vulkan
VK-GL-CTS issue: 1841

Change-Id: I527eb9176cb7450fbb7acccae94478e27159da79
external/vulkancts/framework/vulkan/vkQueryUtil.cpp
external/vulkancts/modules/vulkan/api/vktApiGetMemoryCommitment.cpp