summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-04-12 11:00:39 -0700
committerMatt Turner <[email protected]>2017-04-12 11:00:39 -0700
commitab18578b0306adb437ceb6f7ea510f42a8effae4 (patch)
tree63b8306f1d3d1261d376b74026189310eb49b693 /src/intel/vulkan/anv_wsi.c
parentf7b1371d2d479b8e97cdacae2aec94d5c2ba1321 (diff)
anv: Only define wsi_cbs when VK_USE_PLATFORM_WAYLAND_KHR defined
Diffstat (limited to 'src/intel/vulkan/anv_wsi.c')
-rw-r--r--src/intel/vulkan/anv_wsi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c
index 6ab0f20b3d1..ba66ea6d461 100644
--- a/src/intel/vulkan/anv_wsi.c
+++ b/src/intel/vulkan/anv_wsi.c
@@ -26,9 +26,11 @@
#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)