anv/wsi: Set the platform field of VkIcdSurfaceBase
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 30 Jan 2016 15:05:53 +0000 (07:05 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 30 Jan 2016 15:05:53 +0000 (07:05 -0800)
src/vulkan/anv_wsi_wayland.c
src/vulkan/anv_wsi_x11.c

index 9f4fee910c3c3ef34fbfc10dc1caacbb28e3af81..feecf22782e8163337151e91a3f74e554e567725 100644 (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;
 
index ac24d927dd11589eb68bc84501422ef91fb39bcc..d5e5b88c17bf95b127bc0f7c1b90dec96ef1e6c1 100644 (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;