diff options
author | Jason Ekstrand <[email protected]> | 2015-10-13 11:45:58 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-10-13 11:47:03 -0700 |
commit | c31f926726c64239b1fce3c685f37954e0d8984b (patch) | |
tree | c1ebe71bdf9e34ec3bb1d30d706f1fb86a3da9e6 /src/vulkan/anv_wsi.c | |
parent | e21ecb841c7a2c5653ec86922b4e08006645ae8d (diff) |
anv/wsi: Add the GetSurfacePresentModesKHR stub
Support has existed in the X11 and Wayland backends for a while but,
somehow, the entrypoint got missed in the API shuffle.
Diffstat (limited to 'src/vulkan/anv_wsi.c')
-rw-r--r-- | src/vulkan/anv_wsi.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/vulkan/anv_wsi.c b/src/vulkan/anv_wsi.c index 241481b9895..f5c2d3716a5 100644 --- a/src/vulkan/anv_wsi.c +++ b/src/vulkan/anv_wsi.c @@ -126,6 +126,30 @@ anv_GetSurfaceFormatsKHR( } VkResult +anv_GetSurfacePresentModesKHR( + VkDevice _device, + const VkSurfaceDescriptionKHR* pSurfaceDescription, + uint32_t* pCount, + VkPresentModeKHR* pPresentModes) +{ + ANV_FROM_HANDLE(anv_device, device, _device); + + assert(pSurfaceDescription->sType == + VK_STRUCTURE_TYPE_SURFACE_DESCRIPTION_WINDOW_KHR); + VkSurfaceDescriptionWindowKHR *window = + (VkSurfaceDescriptionWindowKHR *)pSurfaceDescription; + + struct anv_wsi_implementation *impl = + device->instance->wsi_impl[window->platform]; + + assert(impl); + + return impl->get_surface_present_modes(impl, device, window, + pCount, pPresentModes); +} + + +VkResult anv_CreateSwapchainKHR( VkDevice _device, const VkSwapchainCreateInfoKHR* pCreateInfo, |