anv: Only define wsi_cbs when VK_USE_PLATFORM_WAYLAND_KHR defined
authorMatt Turner <mattst88@gmail.com>
Wed, 12 Apr 2017 18:00:39 +0000 (11:00 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 12 Apr 2017 18:00:39 +0000 (11:00 -0700)
src/intel/vulkan/anv_wsi.c

index 6ab0f20b3d1beabcfacdcaede6460592ef3d17ca..ba66ea6d4614baeb83966fa344ca23149c2b102c 100644 (file)
 #include "vk_format_info.h"
 #include "util/vk_util.h"
 
+#ifdef VK_USE_PLATFORM_WAYLAND_KHR
 static const struct wsi_callbacks wsi_cbs = {
    .get_phys_device_format_properties = anv_GetPhysicalDeviceFormatProperties,
 };
+#endif
 
 VkResult
 anv_init_wsi(struct anv_physical_device *physical_device)