1 /* 2 * Copyright © 2016 Red Hat. 3 * Copyright © 2016 Bas Nieuwenhuizen 4 * SPDX-License-Identifier: MIT 5 * 6 * based in part on anv driver which is: 7 * Copyright © 2015 Intel Corporation 8 */ 9 10 #ifndef TU_WSI_H 11 #define TU_WSI_H 12 13 #include "tu_common.h" 14 15 #if defined(VK_USE_PLATFORM_WAYLAND_KHR) || \ 16 defined(VK_USE_PLATFORM_XCB_KHR) || \ 17 defined(VK_USE_PLATFORM_XLIB_KHR) || \ 18 defined(VK_USE_PLATFORM_DISPLAY_KHR) 19 #define TU_USE_WSI_PLATFORM 20 #endif 21 22 VkResult 23 tu_wsi_init(struct tu_physical_device *physical_device); 24 25 void 26 tu_wsi_finish(struct tu_physical_device *physical_device); 27 28 #endif /* TU_WSI_H */ 29