Do not test VkDevice, VkInstance creation OOM paths in WSI tests
authorPyry Haulos <phaulos@google.com>
Thu, 18 Aug 2016 14:22:00 +0000 (15:22 +0100)
committerPyry Haulos <phaulos@google.com>
Thu, 25 Aug 2016 19:19:18 +0000 (12:19 -0700)
commit2dd2c2dc560092c80b636551237758b62fae78d7
treeba03f52d51c2b6986c38cfb4cfe5ba56068757c9
parenta18cb02cb85a47cccf5d432d9207aab6581e2f75
Do not test VkDevice, VkInstance creation OOM paths in WSI tests

VkInstance and VkDevice creation OOM simulation is done already in
dEQP-VK.api.object_management.alloc_callback fail and repeating testing
in WSI tests just wastes time.

Since we want to trigger OOM even if implementation calls into instance-
or device-level callbacks, this is done by setting a mode in
DeterministicFailAllocator that stops alloc counting and failure
simulation.

Bug: 30811856
Change-Id: I9709b5eac98d8057a9080f12c07c8a2b76c83850
external/vulkancts/framework/vulkan/vkAllocationCallbackUtil.cpp
external/vulkancts/framework/vulkan/vkAllocationCallbackUtil.hpp
external/vulkancts/modules/vulkan/api/vktApiObjectManagementTests.cpp
external/vulkancts/modules/vulkan/wsi/vktWsiSurfaceTests.cpp
external/vulkancts/modules/vulkan/wsi/vktWsiSwapchainTests.cpp