diff options
| author | William Henning <whenning@google.com> | 2018-05-23 14:45:43 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2018-05-24 17:51:56 -0600 |
| commit | 6749fa482482f02c30e117f6c00e0a6a5e887993 (patch) | |
| tree | 47e44e72cbbcebf1f17c3ade69d7304e401272df /scripts | |
| parent | 0010418929d56988b38c0f875db27fc7a8e87e37 (diff) | |
| download | usermoji-6749fa482482f02c30e117f6c00e0a6a5e887993.tar.xz | |
icd: Add external buffers, fences, and semaphores
Added calls to vkGetPhysicalDeviceExternal buffer, fence, and semaphore
properties that support for features and handle types.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mock_icd_generator.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index cc3b23d2..bb393375 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -801,6 +801,33 @@ CUSTOM_C_INTERCEPTS = { write_props->maxPushDescriptors = 256; } ''', +'vkGetPhysicalDeviceExternalSemaphoreProperties':''' + // Hard code support for all handle types and features + pExternalSemaphoreProperties->exportFromImportedHandleTypes = 0x1F; + pExternalSemaphoreProperties->compatibleHandleTypes = 0x1F; + pExternalSemaphoreProperties->externalSemaphoreFeatures = 0x3; +''', +'vkGetPhysicalDeviceExternalSemaphorePropertiesKHR':''' + GetPhysicalDeviceExternalSemaphoreProperties(physicalDevice, pExternalSemaphoreInfo, pExternalSemaphoreProperties); +''', +'vkGetPhysicalDeviceExternalFenceProperties':''' + // Hard-code support for all handle types and features + pExternalFenceProperties->exportFromImportedHandleTypes = 0xF; + pExternalFenceProperties->compatibleHandleTypes = 0xF; + pExternalFenceProperties->externalFenceFeatures = 0x3; +''', +'vkGetPhysicalDeviceExternalFencePropertiesKHR':''' + GetPhysicalDeviceExternalFenceProperties(physicalDevice, pExternalFenceInfo, pExternalFenceProperties); +''', +'vkGetPhysicalDeviceExternalBufferProperties':''' + // Hard-code support for all handle types and features + pExternalBufferProperties->externalMemoryProperties.externalMemoryFeatures = 0x7; + pExternalBufferProperties->externalMemoryProperties.exportFromImportedHandleTypes = 0x1FF; + pExternalBufferProperties->externalMemoryProperties.compatibleHandleTypes = 0x1FF; +''', +'vkGetPhysicalDeviceExternalBufferPropertiesKHR':''' + GetPhysicalDeviceExternalBufferProperties(physicalDevice, pExternalBufferInfo, pExternalBufferProperties); +''', 'vkGetBufferMemoryRequirements': ''' // TODO: Just hard-coding reqs for now pMemoryRequirements->size = 4096; |
