summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi.c
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-04-20 19:01:00 +0100
committerEmil Velikov <[email protected]>2016-05-01 08:38:04 +0100
commitcbc4837b83157fd990ac5960badaba342be6cb33 (patch)
tree47a49349b5981c3bff0596ed169210b5a59f0eed /src/intel/vulkan/anv_wsi.c
parent9bc99f56682721261fec90568255dc9b937faa7c (diff)
anv: kill of custom define HAVE_WAYLAND_PLATFORM
Vulkan API already has equivalent, so simplify things as just use it. Signed-off-by: Emil Velikov <[email protected]> Acked-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_wsi.c')
-rw-r--r--src/intel/vulkan/anv_wsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c
index c2938f3836f..850e14fd60d 100644
--- a/src/intel/vulkan/anv_wsi.c
+++ b/src/intel/vulkan/anv_wsi.c
@@ -32,7 +32,7 @@ anv_init_wsi(struct anv_instance *instance)
if (result != VK_SUCCESS)
return result;
-#ifdef HAVE_WAYLAND_PLATFORM
+#ifdef VK_USE_PLATFORM_WAYLAND_KHR
result = anv_wl_init_wsi(instance);
if (result != VK_SUCCESS) {
anv_x11_finish_wsi(instance);
@@ -46,7 +46,7 @@ anv_init_wsi(struct anv_instance *instance)
void
anv_finish_wsi(struct anv_instance *instance)
{
-#ifdef HAVE_WAYLAND_PLATFORM
+#ifdef VK_USE_PLATFORM_WAYLAND_KHR
anv_wl_finish_wsi(instance);
#endif
anv_x11_finish_wsi(instance);