aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspencer-lunarg <spencer@lunarg.com>2023-10-29 16:24:28 +0900
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2023-10-29 13:19:59 -0600
commitff450810971cf99b6cd04944c314c26e66930997 (patch)
treec95f5b19eaba2203fab74df5fc00771a5780ad2a
parent30244ad47b127a7ac2c80938918209627918ca30 (diff)
downloadusermoji-ff450810971cf99b6cd04944c314c26e66930997.tar.xz
icd: Add vkGetMemoryHostPointerPropertiesEXT support
-rw-r--r--icd/generated/function_definitions.h2
-rw-r--r--scripts/mock_icd_generator.py4
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