From 0996f0d80ca54306dbd1e8fdb37909a79ee16f41 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 14 Nov 2017 09:52:17 -0700 Subject: icd:Expand mock icd memory type bit support Image/buffer memory requirement memoryTypeBits are still just hard- coded in mock icd, but expand to support more bits for more simulated memory types. This helps the mock work in conjunction with the devsim layer so that if a simulated device has more than 5 memory types, the mock icd won't cause an error. --- scripts/mock_icd_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index c0757e23..7a10c5d3 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -632,7 +632,7 @@ CUSTOM_C_INTERCEPTS = { // TODO: Just hard-coding reqs for now pMemoryRequirements->size = 4096; pMemoryRequirements->alignment = 1; - pMemoryRequirements->memoryTypeBits = 0x1F; + pMemoryRequirements->memoryTypeBits = 0xFFFF; ''', 'vkGetBufferMemoryRequirements2KHR': ''' GetBufferMemoryRequirements(device, pInfo->buffer, &pMemoryRequirements->memoryRequirements); @@ -641,7 +641,7 @@ CUSTOM_C_INTERCEPTS = { // TODO: Just hard-coding reqs for now pMemoryRequirements->size = 4096; pMemoryRequirements->alignment = 1; - pMemoryRequirements->memoryTypeBits = 0x1F; + pMemoryRequirements->memoryTypeBits = 0xFFFF; ''', 'vkGetImageMemoryRequirements2KHR': ''' GetImageMemoryRequirements(device, pInfo->image, &pMemoryRequirements->memoryRequirements); -- cgit v1.2.3