anv/wsi: Set the platform field of VkIcdSurfaceBase

This commit is contained in:
Jason Ekstrand 2016-01-30 07:05:53 -08:00
parent 5acc4e2ebf
commit ad813b072a
2 changed files with 2 additions and 0 deletions

View File

@ -438,6 +438,7 @@ VkResult anv_CreateWaylandSurfaceKHR(
if (surface == NULL)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
surface->base.platform = VK_ICD_WSI_PLATFORM_WAYLAND;
surface->display = pCreateInfo->display;
surface->surface = pCreateInfo->surface;

View File

@ -408,6 +408,7 @@ VkResult anv_CreateXcbSurfaceKHR(
if (surface == NULL)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
surface->base.platform = VK_ICD_WSI_PLATFORM_XCB;
surface->connection = pCreateInfo->connection;
surface->window = pCreateInfo->window;