summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Henning <whenning@google.com>2018-05-24 14:14:15 -0600
committerTobin Ehlis <tobine@google.com>2018-05-25 06:55:43 -0600
commit5e1623ca6860f3e393b1dabbdd19ba216871fa61 (patch)
tree40c08d0773969c3ddcacae142900b44084efb036
parent2d1bc52881788f6b2523f4cf1c1711a47d7953a7 (diff)
downloadVulkan-Tools-5e1623ca6860f3e393b1dabbdd19ba216871fa61.tar.gz
Vulkan-Tools-5e1623ca6860f3e393b1dabbdd19ba216871fa61.tar.bz2
Vulkan-Tools-5e1623ca6860f3e393b1dabbdd19ba216871fa61.zip
icd: Add a memory format that is unsupported
Hard code into the mock ICD that the memory type at index 3 is unsupported. This allows the BindImageInvalidMemoryType test in the validation layers to be run without skipping.
-rw-r--r--scripts/mock_icd_generator.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py
index 9c60fbd4..dad9068f 100644
--- a/scripts/mock_icd_generator.py
+++ b/scripts/mock_icd_generator.py
@@ -847,7 +847,9 @@ CUSTOM_C_INTERCEPTS = {
// TODO: Just hard-coding reqs for now
pMemoryRequirements->size = 4096;
pMemoryRequirements->alignment = 1;
- pMemoryRequirements->memoryTypeBits = 0xFFFF;
+
+ // Here we hard-code that the memory type at index 3 doesn't support this image.
+ pMemoryRequirements->memoryTypeBits = 0xFFFF & ~(0x1 << 3);
''',
'vkGetImageMemoryRequirements2KHR': '''
GetImageMemoryRequirements(device, pInfo->image, &pMemoryRequirements->memoryRequirements);