diff options
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( |