diff options
| author | spencer-lunarg <spencer@lunarg.com> | 2023-10-29 16:24:28 +0900 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2023-10-29 13:19:59 -0600 |
| commit | ff450810971cf99b6cd04944c314c26e66930997 (patch) | |
| tree | c95f5b19eaba2203fab74df5fc00771a5780ad2a | |
| parent | 30244ad47b127a7ac2c80938918209627918ca30 (diff) | |
| download | usermoji-ff450810971cf99b6cd04944c314c26e66930997.tar.xz | |
icd: Add vkGetMemoryHostPointerPropertiesEXT support
| -rw-r--r-- | icd/generated/function_definitions.h | 2 | ||||
| -rw-r--r-- | scripts/mock_icd_generator.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/icd/generated/function_definitions.h b/icd/generated/function_definitions.h index ffcada76..61e5f39a 100644 --- a/icd/generated/function_definitions.h +++ b/icd/generated/function_definitions.h @@ -5095,7 +5095,7 @@ static VKAPI_ATTR VkResult VKAPI_CALL GetMemoryHostPointerPropertiesEXT( const void* pHostPointer, VkMemoryHostPointerPropertiesEXT* pMemoryHostPointerProperties) { -//Not a CREATE or DESTROY function + pMemoryHostPointerProperties->memoryTypeBits = 1 << 5; // DEVICE_LOCAL only type return VK_SUCCESS; } diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index a2d1db5f..499669f8 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -1060,6 +1060,10 @@ CUSTOM_C_INTERCEPTS = { *pFd = 1; return VK_SUCCESS; ''', +'vkGetMemoryHostPointerPropertiesEXT': ''' + pMemoryHostPointerProperties->memoryTypeBits = 1 << 5; // DEVICE_LOCAL only type + return VK_SUCCESS; +''', 'vkGetAndroidHardwareBufferPropertiesANDROID': ''' pProperties->allocationSize = 65536; pProperties->memoryTypeBits = 1 << 5; // DEVICE_LOCAL only type |
