anv/wsi: Set the platform field of VkIcdSurfaceBase
This commit is contained in:
parent
5acc4e2ebf
commit
ad813b072a
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue