Allow allocation of non-coherent memory if coherency is not required.
authorJarkko Pöyry <jpoyry@google.com>
Thu, 30 Jul 2015 22:15:58 +0000 (15:15 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Thu, 30 Jul 2015 23:52:25 +0000 (16:52 -0700)
commit80ab6a2656b30660734f5ef8decd81b9563eb045
treef6ff38986164c842b172f87e3d400e64a5d16512
parentd68a8bc38d6b17762fa75b8f9b685bedda569d8b
Allow allocation of non-coherent memory if coherency is not required.

Use MemoryRequirement instead of VkMemoryProperty flags as allocation
requirement. This allows specifying memory that is allowed to be
coherent but it is not required. This is not possible with the vk mask
since in vulkan non-coherence (instead of coherence) is a feature
of the memory.

Change-Id: Iab50a6264599c8c50f4c5008e95b9c9429d264db
external/vulkancts/framework/vulkan/vkMemUtil.cpp
external/vulkancts/framework/vulkan/vkMemUtil.hpp
external/vulkancts/modules/vulkan/api/vktApiTests.cpp