[Mesa-dev] [PATCH mesa] radv: compile out unused code
Eric Engestrom
eric.engestrom at imgtec.com
Tue Sep 12 15:10:41 UTC 2017
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
src/amd/vulkan/radv_wsi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c
index aa44b7d78a..8a551c48bb 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)
--
Cheers,
Eric
More information about the mesa-dev
mailing list