anv: kill of custom define HAVE_WAYLAND_PLATFORM
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 20 Apr 2016 18:01:00 +0000 (19:01 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 1 May 2016 07:38:04 +0000 (08:38 +0100)
Vulkan API already has equivalent, so simplify things as just use it.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/Makefile.am
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_wsi.c

index fc2217056574e046ece997c1dbf46e500017b829..98784aa2714551a7c1ac530869bbf3f13d70752b 100644 (file)
@@ -98,8 +98,7 @@ AM_CPPFLAGS += \
        -I$(top_builddir)/src/egl/wayland/wayland-drm \
        -I$(top_srcdir)/src/egl/wayland/wayland-drm \
        $(WAYLAND_CFLAGS) \
-       -DVK_USE_PLATFORM_WAYLAND_KHR \
-       -DHAVE_WAYLAND_PLATFORM
+       -DVK_USE_PLATFORM_WAYLAND_KHR
 
 VULKAN_SOURCES += $(VULKAN_WSI_WAYLAND_FILES)
 
index 4abcdf92af0391a03e9a7c50f4f3a062ab91ed9d..03a14392b4dbaea4791288bcf5b7c6efd70f0837 100644 (file)
@@ -174,7 +174,7 @@ static const VkExtensionProperties global_extensions[] = {
       .extensionName = VK_KHR_XCB_SURFACE_EXTENSION_NAME,
       .specVersion = 5,
    },
-#ifdef HAVE_WAYLAND_PLATFORM
+#ifdef VK_USE_PLATFORM_WAYLAND_KHR
    {
       .extensionName = VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME,
       .specVersion = 4,
index c2938f3836fd79da765cc7f5f5d0eb8ad1cf122d..850e14fd60dc7bdaa1e4b3bfc50db331f0a0a390 100644 (file)
@@ -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);