aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2017-11-14 09:52:17 -0700
committerTobin Ehlis <tobine@google.com>2017-11-17 09:38:09 -0700
commit0996f0d80ca54306dbd1e8fdb37909a79ee16f41 (patch)
tree02a7fda29df49eb5443b22b45744f1f1738dae11 /scripts
parent4dd2152a1fb5db933704fdecbcbb07bcf27b3ac1 (diff)
downloadusermoji-0996f0d80ca54306dbd1e8fdb37909a79ee16f41.tar.xz
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mock_icd_generator.py4
1 files changed, 2 insertions, 2 deletions
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);