diff options
author | Emil Velikov <[email protected]> | 2016-04-20 19:15:18 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-05-01 08:38:04 +0100 |
commit | 6dc169e18f6991836be5172adae7c5766cda3366 (patch) | |
tree | 9227c46241f946d5a8bde5caeccd352c8b16a6c3 /src/intel/vulkan/anv_wsi.c | |
parent | cbc4837b83157fd990ac5960badaba342be6cb33 (diff) |
anv: factor out the X11/XCB build
Similar to earlier commit - move all the common bits into a single
place, thus improving readability and allowing us to see what's missing.
Also don't forget to add the missing bits. This commit should allows us
to build wayland only vulkan ;-)
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_wsi.c')
-rw-r--r-- | src/intel/vulkan/anv_wsi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index 850e14fd60d..49edbdc2f99 100644 --- a/src/intel/vulkan/anv_wsi.c +++ b/src/intel/vulkan/anv_wsi.c @@ -28,9 +28,11 @@ anv_init_wsi(struct anv_instance *instance) { VkResult result; +#ifdef VK_USE_PLATFORM_XCB_KHR result = anv_x11_init_wsi(instance); if (result != VK_SUCCESS) return result; +#endif #ifdef VK_USE_PLATFORM_WAYLAND_KHR result = anv_wl_init_wsi(instance); @@ -49,7 +51,9 @@ anv_finish_wsi(struct anv_instance *instance) #ifdef VK_USE_PLATFORM_WAYLAND_KHR anv_wl_finish_wsi(instance); #endif +#ifdef VK_USE_PLATFORM_XCB_KHR anv_x11_finish_wsi(instance); +#endif } void anv_DestroySurfaceKHR( |