diff options
| author | Mark Young <marky@lunarg.com> | 2016-09-09 07:26:48 -0600 |
|---|---|---|
| committer | Mark Young <marky@lunarg.com> | 2016-09-09 07:39:11 -0600 |
| commit | e669d89c775f5d957a49c0f8f960f8a3373c7adf (patch) | |
| tree | 820d9243d65e43b8ff2b858b6b258eb34df148a5 | |
| parent | dc2dfb76d9671d77dec6d8209e2a27decebabfcb (diff) | |
| download | usermoji-e669d89c775f5d957a49c0f8f960f8a3373c7adf.tar.xz | |
loader: Add back func calls
Previously removed function calls in extension_create_instance
because I believed they were no longer needed. I was incorrect.
Change-Id: Ibc63009f0038a413b7e1bc03225818b046a62352
| -rw-r--r-- | loader/extensions.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/loader/extensions.c b/loader/extensions.c index fd7e0ecf..5a0608a7 100644 --- a/loader/extensions.c +++ b/loader/extensions.c @@ -130,6 +130,29 @@ bool extension_instance_gpa(struct loader_instance *ptr_instance, return true; } + // Functions for the VK_AMD_draw_indirect_count extension + + if (!strcmp("vkCmdDrawIndirectCountAMD", name)) { + *addr = (void *)vkCmdDrawIndirectCountAMD; + return true; + } + + if (!strcmp("vkCmdDrawIndexedIndirectCountAMD", name)) { + *addr = (void *)vkCmdDrawIndexedIndirectCountAMD; + return true; + } + +#ifdef VK_USE_PLATFORM_WIN32_KHR + + // Functions for the VK_NV_external_memory_win32 extension + + if (!strcmp("vkGetMemoryWin32HandleNV", name)) { + *addr = (void *)vkGetMemoryWin32HandleNV; + return true; + } + +#endif // VK_USE_PLATFORM_WIN32_KHR + return false; } |
