aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-08-24 16:22:42 +0100
committerEric Engestrom <[email protected]>2017-09-13 11:19:30 +0100
commitc0b81af0dcde4536dcf57ce24db3e0aa7187be4e (patch)
tree0b71f6d88e3b23d847c20c58e3f2e6823faafa91 /src/amd/vulkan
parent375c4868efa3cf549699557989c8f5c08c0710f0 (diff)
radv: compile out unused code
Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_wsi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c
index aa44b7d78ac..8a551c48bb6 100644
--- a/src/amd/vulkan/radv_wsi.c
+++ b/src/amd/vulkan/radv_wsi.c
@@ -28,9 +28,11 @@
#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)