Browse Source

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.
tags/12.0-branchpoint
Jason Ekstrand 10 years ago
parent
commit
c31f926726
1 changed files with 24 additions and 0 deletions
  1. 24
    0
      src/vulkan/anv_wsi.c

+ 24
- 0
src/vulkan/anv_wsi.c View File

pCount, pSurfaceFormats); pCount, pSurfaceFormats);
} }


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 VkResult
anv_CreateSwapchainKHR( anv_CreateSwapchainKHR(
VkDevice _device, VkDevice _device,

Loading…
Cancel
Save