From 5e1623ca6860f3e393b1dabbdd19ba216871fa61 Mon Sep 17 00:00:00 2001 From: William Henning Date: Thu, 24 May 2018 14:14:15 -0600 Subject: 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. --- scripts/mock_icd_generator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') 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); -- cgit v1.2.3