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