aboutsummaryrefslogtreecommitdiff
path: root/loader/wsi.c
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-07-01 15:18:27 -0600
committerMark Young <marky@lunarg.com>2016-09-01 08:14:27 -0600
commitffb06194c4792cf350d7fa5737fda6e8e38cb0de (patch)
treef2413bb6405ba2068b28376eaad87ac722c58a50 /loader/wsi.c
parent48fc62a1db1480fbf3007fb5e50fecb239b394d5 (diff)
downloadusermoji-ffb06194c4792cf350d7fa5737fda6e8e38cb0de.tar.xz
loader: gh888 Add KHR/EXT extensions in vulkan.h
Add the KHR_display_swapchain device extension to the loader and the core_validation layers. This fulfills the work required in JIRA LOAD-7 and gh 90. Add debug_marker to the extension list. Change-Id: I1fb70e5d44bc8c1f70fd6d1cfbd106a155081b25
Diffstat (limited to 'loader/wsi.c')
-rw-r--r--loader/wsi.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/loader/wsi.c b/loader/wsi.c
index 539dbac8..10c5260e 100644
--- a/loader/wsi.c
+++ b/loader/wsi.c
@@ -1262,6 +1262,18 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateDisplayPlaneSurfaceKHR(
return VK_SUCCESS;
}
+// This is the trampoline entrypoint
+// for CreateSharedSwapchainsKHR
+LOADER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkCreateSharedSwapchainsKHR(
+ VkDevice device, uint32_t swapchainCount,
+ const VkSwapchainCreateInfoKHR *pCreateInfos,
+ const VkAllocationCallbacks *pAllocator, VkSwapchainKHR *pSwapchains) {
+ const VkLayerDispatchTable *disp;
+ disp = loader_get_dispatch(device);
+ return disp->CreateSharedSwapchainsKHR(
+ device, swapchainCount, pCreateInfos, pAllocator, pSwapchains);
+}
+
bool wsi_swapchain_instance_gpa(struct loader_instance *ptr_instance,
const char *name, void **addr) {
*addr = NULL;
@@ -1458,5 +1470,12 @@ bool wsi_swapchain_instance_gpa(struct loader_instance *ptr_instance,
: NULL;
return true;
}
+
+ // Functions for KHR_display_swapchain extension:
+ if (!strcmp("vkCreateSharedSwapchainsKHR", name)) {
+ *addr = (void *)vkCreateSharedSwapchainsKHR;
+ return true;
+ }
+
return false;
}