Shared memory layout tests
authorAntto Mäkinen <antto.makinen@siru.fi>
Thu, 25 Feb 2021 13:44:28 +0000 (15:44 +0200)
committerAntto Mäkinen <antto.makinen@siru.fi>
Mon, 14 Jun 2021 07:23:18 +0000 (10:23 +0300)
commit7e1a8ad85c0ad761fe579f28ba639ef157aafb7b
tree6afd9296b7120c5acea509071ad258dac139a898
parentc83ef24e909ef0a94140e9af0c1e192bd1a662d1
Shared memory layout tests

Vulkan leaves it to implementations to determine the layout of shared memory.
This test ensures that the fields in the shared memory won't end up
overlapping each other.

This commit also does a minor clean up for the framework core and adds
util functions for comparing types which are common for this and the SSBO tests.

VK-GL-CTS issue: 2372

New Tests:
dEQP-VK.memory_model.shared.*

Components: Vulkan

Change-Id: I4ac0a03f91a5ce699fe03f3c43943fb8eac88850
15 files changed:
AndroidGen.mk
android/cts/master/vk-master-2021-03-01/memory-model.txt
android/cts/master/vk-master/memory-model.txt
external/vulkancts/modules/vulkan/memory_model/CMakeLists.txt
external/vulkancts/modules/vulkan/memory_model/vktMemoryModelMessagePassing.cpp
external/vulkancts/modules/vulkan/memory_model/vktMemoryModelSharedLayout.cpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/memory_model/vktMemoryModelSharedLayout.hpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/memory_model/vktMemoryModelSharedLayoutCase.cpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/memory_model/vktMemoryModelSharedLayoutCase.hpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/ssbo/CMakeLists.txt
external/vulkancts/modules/vulkan/ssbo/vktSSBOLayoutCase.cpp
external/vulkancts/modules/vulkan/util/vktTypeComparisonUtil.cpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/util/vktTypeComparisonUtil.hpp [new file with mode: 0644]
external/vulkancts/modules/vulkan/vktShaderLibrary.cpp
external/vulkancts/mustpass/master/vk-default/memory-model.txt