Skip unsupported allocations in invariance test
authorRicardo Garcia <rgarcia@igalia.com>
Tue, 8 Jun 2021 10:16:39 +0000 (12:16 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 16 Jun 2021 06:53:39 +0000 (06:53 +0000)
commit5c5c076a3e5e0a455e72243e6ef0e28a79a9cfa5
tree518e2cdbe0314f5a5c54b149326969e065d712f2
parent367889fefa3502b20e19fce5d3915d918b225fc1
Skip unsupported allocations in invariance test

dEQP-VK.api.invariance.random is a test that performs a high number of
memory allocations (1000 as of this commit). Some of them may throw a
not supported exception that wasn't being caught and would result in the
whole test being marked as unsupported.

This change catches the exception and only returns "not supported" if
none of the allocations were supported. Otherwise, it runs all possible
allocations and checks results for the supported ones.

Affected tests:
dEQP-VK.api.invariance.random

Components: Vulkan
VK-GL-CTS issue: 2110

Change-Id: I92163c42e33671291dd9fc0c753dc43b4a058796
external/vulkancts/modules/vulkan/api/vktApiMemoryRequirementInvarianceTests.cpp