diff options
| author | spencer-lunarg <spencer@lunarg.com> | 2023-12-11 21:34:22 +0900 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2023-12-11 09:37:31 -0700 |
| commit | 5851e6f7bd2afdb1c93932f71d675368670163cf (patch) | |
| tree | 2744728d7116360509c71fe76f2c46c783240754 | |
| parent | d39a39c462f05e4bf649ebd97b6e4b4de982242d (diff) | |
| download | usermoji-5851e6f7bd2afdb1c93932f71d675368670163cf.tar.xz | |
icd: Add vkRegisterDisplayEventEXT
| -rw-r--r-- | icd/generated/function_definitions.h | 3 | ||||
| -rw-r--r-- | scripts/mock_icd_generator.py | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/icd/generated/function_definitions.h b/icd/generated/function_definitions.h index da8a0eab..fd8db9a3 100644 --- a/icd/generated/function_definitions.h +++ b/icd/generated/function_definitions.h @@ -4565,7 +4565,8 @@ static VKAPI_ATTR VkResult VKAPI_CALL RegisterDisplayEventEXT( const VkAllocationCallbacks* pAllocator, VkFence* pFence) { -//Not a CREATE or DESTROY function + unique_lock_t lock(global_lock); + *pFence = (VkFence)global_unique_handle++; return VK_SUCCESS; } diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index 84c7c72d..a61af48c 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -1102,6 +1102,11 @@ CUSTOM_C_INTERCEPTS = { } return VK_SUCCESS; ''', +'vkRegisterDisplayEventEXT': ''' + unique_lock_t lock(global_lock); + *pFence = (VkFence)global_unique_handle++; + return VK_SUCCESS; +''', } # MockICDGeneratorOptions - subclass of GeneratorOptions. |
