anv: Only define wsi_cbs when VK_USE_PLATFORM_WAYLAND_KHR defined
This commit is contained in:
@@ -26,9 +26,11 @@
|
|||||||
#include "vk_format_info.h"
|
#include "vk_format_info.h"
|
||||||
#include "util/vk_util.h"
|
#include "util/vk_util.h"
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
static const struct wsi_callbacks wsi_cbs = {
|
static const struct wsi_callbacks wsi_cbs = {
|
||||||
.get_phys_device_format_properties = anv_GetPhysicalDeviceFormatProperties,
|
.get_phys_device_format_properties = anv_GetPhysicalDeviceFormatProperties,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
VkResult
|
VkResult
|
||||||
anv_init_wsi(struct anv_physical_device *physical_device)
|
anv_init_wsi(struct anv_physical_device *physical_device)
|
||||||
|
Reference in New Issue
Block a user