Added test to check memory requirement invariance
authorJari Komppa <jari.komppa@siru.fi>
Fri, 25 May 2018 13:26:26 +0000 (16:26 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sun, 9 Sep 2018 15:29:26 +0000 (11:29 -0400)
commit8bc75f5cf811df49d5cf8472ec39b49918488758
tree5aaeb9976ce4d0584b7bb0e3ecd2b0cd9c756681
parent4c0629667ffcaf9567dc6397b5f07501aed800c1
Added test to check memory requirement invariance

Added a test that allocates random buffers and images, first in order
one by one, and then shuffled, verifying that the required memory
sizes match between these runs.

Image sizes, formats, allocation types and heap type requirements are
randomized.

The test depends on the supported image formats and available heap
types, so it is subtly different depending on the features the
driver supports. The goal for this test is to check for memory
requirement invariance, and thus it differs with the exact features
that are supported. The used features are printed in the log
for reference.

New tests:

dEQP-VK.api.invariance.random

Components: Vulkan

VK-GL-CTS issue: 1171

Change-Id: If869a72f6552174171d1f9bcce51e424ad8e8572
12 files changed:
AndroidGen.mk
android/cts/master/vk-master.txt
external/vulkancts/framework/vulkan/vkMemUtil.cpp
external/vulkancts/framework/vulkan/vkMemUtil.hpp
external/vulkancts/modules/vulkan/api/CMakeLists.txt
external/vulkancts/modules/vulkan/api/vktApiBufferAndImageAllocationUtil.cpp
external/vulkancts/modules/vulkan/api/vktApiBufferAndImageAllocationUtil.hpp
external/vulkancts/modules/vulkan/api/vktApiMemoryRequirementInvarianceTests.cpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/api/vktApiMemoryRequirementInvarianceTests.hpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/api/vktApiTests.cpp
external/vulkancts/mustpass/1.1.3/vk-default-no-waivers.txt
external/vulkancts/mustpass/1.1.3/vk-default.txt