[Mesa-dev] [PATCH mesa] radv: compile out unused code

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Tue Sep 12 17:25:23 UTC 2017


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On 12 Sep 2017 5:11 PM, "Eric Engestrom" <eric.engestrom at imgtec.com> wrote:

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_GetPhysicalDeviceFormatPropert
ies,
 };
+#endif

 VkResult
 radv_init_wsi(struct radv_physical_device *physical_device)
--
Cheers,
  Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170912/e7174187/attachment.html>


More information about the mesa-dev mailing list