diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-11-17 15:31:02 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2015-11-18 17:05:38 -0700 |
| commit | 01261e73d94be281a6b8bc73e088333841fb83d6 (patch) | |
| tree | 422905de73cc57fc3340522c598c5304187fa7de /loader/vk_loader_platform.h | |
| parent | e716d2ed830a7080604a7d6b66224ff88c0f14b6 (diff) | |
| download | usermoji-01261e73d94be281a6b8bc73e088333841fb83d6.tar.xz | |
loader: Add dynamic dispatch for unknown device extension entrypoints
GetInstancePorcAddr() is specified to return trampoline entrypoints for all
Vulkan core and extension entrypoints that are dispatched on an instance object
or a child of that instance object. However, typically, device extensions would
be unknown to the loader (don't want to rev the loader everytime an IHV creates
a new device extension).
This patch allows loader to dynamically discover device extension entrypoints
and configure generic trampoline code for these discovered device extensions.
Diffstat (limited to 'loader/vk_loader_platform.h')
| -rw-r--r-- | loader/vk_loader_platform.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h index 530546d9..1688e5eb 100644 --- a/loader/vk_loader_platform.h +++ b/loader/vk_loader_platform.h @@ -43,6 +43,7 @@ #include <dlfcn.h> #include <pthread.h> #include <assert.h> +#include <string.h> #include <stdbool.h> #include <stdlib.h> #include <libgen.h> @@ -207,6 +208,7 @@ static inline void loader_platform_thread_cond_broadcast(loader_platform_thread_ #endif #include <assert.h> #include <stdio.h> +#include <string.h> #include <io.h> #include <stdbool.h> #include <shlwapi.h> |
