summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-30 07:05:53 -0800
committerJason Ekstrand <[email protected]>2016-01-30 07:05:53 -0800
commitad813b072a69d92ca4a1bfdf6b4dd7f6197b6ab4 (patch)
tree9e18a7434920f413d9c003917baa550c80be3a16
parent5acc4e2ebfe0e482d4f612c440877601c54c8b05 (diff)
anv/wsi: Set the platform field of VkIcdSurfaceBase
-rw-r--r--src/vulkan/anv_wsi_wayland.c1
-rw-r--r--src/vulkan/anv_wsi_x11.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/anv_wsi_wayland.c b/src/vulkan/anv_wsi_wayland.c
index 9f4fee910c3..feecf22782e 100644
--- a/src/vulkan/anv_wsi_wayland.c
+++ b/src/vulkan/anv_wsi_wayland.c
@@ -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;
diff --git a/src/vulkan/anv_wsi_x11.c b/src/vulkan/anv_wsi_x11.c
index ac24d927dd1..d5e5b88c17b 100644
--- a/src/vulkan/anv_wsi_x11.c
+++ b/src/vulkan/anv_wsi_x11.c
@@ -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;