radv: compile out unused code
authorEric Engestrom <eric.engestrom@imgtec.com>
Thu, 24 Aug 2017 15:22:42 +0000 (16:22 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Wed, 13 Sep 2017 10:19:30 +0000 (11:19 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/amd/vulkan/radv_wsi.c

index aa44b7d78ac049d4a767c1144f0ed175e1f61717..8a551c48bb688bad356237632d9ab2944381dfac 100644 (file)
 #include "wsi_common.h"
 #include "vk_util.h"
 
+#ifdef VK_USE_PLATFORM_WAYLAND_KHR
 static const struct wsi_callbacks wsi_cbs = {
    .get_phys_device_format_properties = radv_GetPhysicalDeviceFormatProperties,
 };
+#endif
 
 VkResult
 radv_init_wsi(struct radv_physical_device *physical_device)