vulkan: Add skeleton swapchain support
Loader and driver entry points exist and the call chains are hooked up
properly, but functions are just empty stubs for now.
Change-Id: I6ff95e47d1d09ebed41eda8accb71686c8249546
(cherry picked from commit 038c8a740bbda4650bec776023a26a7fcbf93864)
diff --git a/vulkan/libvulkan/loader.cpp b/vulkan/libvulkan/loader.cpp
index 41425e9..26b1377 100644
--- a/vulkan/libvulkan/loader.cpp
+++ b/vulkan/libvulkan/loader.cpp
@@ -342,6 +342,15 @@
}
dispatch->vtbl = &device->vtbl_storage;
+ device->vtbl_storage.GetSurfacePropertiesKHR = GetSurfacePropertiesKHR;
+ device->vtbl_storage.GetSurfaceFormatsKHR = GetSurfaceFormatsKHR;
+ device->vtbl_storage.GetSurfacePresentModesKHR = GetSurfacePresentModesKHR;
+ device->vtbl_storage.CreateSwapchainKHR = CreateSwapchainKHR;
+ device->vtbl_storage.DestroySwapchainKHR = DestroySwapchainKHR;
+ device->vtbl_storage.GetSwapchainImagesKHR = GetSwapchainImagesKHR;
+ device->vtbl_storage.AcquireNextImageKHR = AcquireNextImageKHR;
+ device->vtbl_storage.QueuePresentKHR = QueuePresentKHR;
+
// TODO: insert device layer entry points into device->vtbl_storage here?
*out_device = drv_device;
@@ -402,6 +411,7 @@
.GetPhysicalDeviceExtensionProperties = GetPhysicalDeviceExtensionPropertiesBottom,
.GetPhysicalDeviceLayerProperties = GetPhysicalDeviceLayerPropertiesBottom,
.GetPhysicalDeviceSparseImageFormatProperties = GetPhysicalDeviceSparseImageFormatPropertiesBottom,
+ .GetPhysicalDeviceSurfaceSupportKHR = GetPhysicalDeviceSurfaceSupportKHR,
// clang-format on
};