summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-05-28 19:49:37 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-05-30 10:26:35 +0100
commit93e65fdcac10545504b588e24d3ef03fa3e9e424 (patch)
treea1b8d6cb8f614f534a8b173cea9c172426c7add5 /src/intel/vulkan/anv_wsi.c
parent5068d307f912ebe776a273c82aa427e4d6002120 (diff)
downloadexternal_mesa3d-93e65fdcac10545504b588e24d3ef03fa3e9e424.zip
external_mesa3d-93e65fdcac10545504b588e24d3ef03fa3e9e424.tar.gz
external_mesa3d-93e65fdcac10545504b588e24d3ef03fa3e9e424.tar.bz2
anv: resolve wayland-only build
Ensure that the final X11/XCB hunk is guarded by the correct macro. Otherwise we'll require the symbol even when building without said platform. Cc: Cedric Sodhi <manday@openmail.cc> Reported-by: Cedric Sodhi <manday@openmail.cc> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
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 ce9ec32..006944a 100644
--- a/src/intel/vulkan/anv_wsi.c
+++ b/src/intel/vulkan/anv_wsi.c
@@ -39,7 +39,9 @@ anv_init_wsi(struct anv_physical_device *physical_device)
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
result = anv_wl_init_wsi(physical_device);
if (result != VK_SUCCESS) {
+#ifdef VK_USE_PLATFORM_XCB_KHR
anv_x11_finish_wsi(physical_device);
+#endif
return result;
}
#endif