From ad813b072a69d92ca4a1bfdf6b4dd7f6197b6ab4 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 30 Jan 2016 07:05:53 -0800 Subject: [PATCH] anv/wsi: Set the platform field of VkIcdSurfaceBase --- src/vulkan/anv_wsi_wayland.c | 1 + src/vulkan/anv_wsi_x11.c | 1 + 2 files changed, 2 insertions(+) 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; -- 2.30.2