radv: move RADV_USE_WSI_PLATFORM define to radv_wsi.h

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28568>
This commit is contained in:
Samuel Pitoiset
2024-04-04 13:37:09 +02:00
committed by Marge Bot
parent 28eefbadeb
commit 367cf70a29
5 changed files with 8 additions and 5 deletions
+1
View File
@@ -40,6 +40,7 @@
#include "radv_radeon_winsys.h"
#include "radv_rmv.h"
#include "radv_video.h"
#include "radv_wsi.h"
#include "sid.h"
#include "vk_debug_utils.h"
#include "vk_format.h"
+1
View File
@@ -28,6 +28,7 @@
#include "radv_instance.h"
#include "radv_debug.h"
#include "radv_private.h"
#include "radv_wsi.h"
#include "util/driconf.h"
+1
View File
@@ -37,6 +37,7 @@
#include "radv_android.h"
#include "radv_debug.h"
#include "radv_instance.h"
#include "radv_physical_device.h"
#include "radv_pipeline_rt.h"
#include "radv_private.h"
#include "radv_video.h"
-5
View File
@@ -102,11 +102,6 @@
extern "C" {
#endif
#if defined(VK_USE_PLATFORM_WAYLAND_KHR) || defined(VK_USE_PLATFORM_XCB_KHR) || defined(VK_USE_PLATFORM_XLIB_KHR) || \
defined(VK_USE_PLATFORM_DISPLAY_KHR)
#define RADV_USE_WSI_PLATFORM
#endif
#ifdef __cplusplus
}
#endif
+5
View File
@@ -30,6 +30,11 @@
#include "radv_physical_device.h"
#if defined(VK_USE_PLATFORM_WAYLAND_KHR) || defined(VK_USE_PLATFORM_XCB_KHR) || defined(VK_USE_PLATFORM_XLIB_KHR) || \
defined(VK_USE_PLATFORM_DISPLAY_KHR)
#define RADV_USE_WSI_PLATFORM
#endif
VkResult radv_init_wsi(struct radv_physical_device *pdev);
void radv_finish_wsi(struct radv_physical_device *pdev);