meson: Stop requiring platforms for Vulkan
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 11 Nov 2017 18:28:54 +0000 (10:28 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 13 Nov 2017 19:54:44 +0000 (11:54 -0800)
It should be perfectly valid to build a completely headless Vulkan
driver.  We don't need to require a platform.

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build

index 1f6658bbacf98ca152aae84a2fc4bc954a67b4d7..e4d0e0f80cb2275b984f6a170e7a1fa93c1dbb8a 100644 (file)
@@ -306,9 +306,6 @@ if _vulkan_drivers != ''
   with_intel_vk = _split.contains('intel')
   with_amd_vk = _split.contains('amd')
   with_any_vk = with_amd_vk or with_intel_vk
-  if not (with_platform_x11 or with_platform_wayland or with_platform_android)
-    error('Vulkan requires at least one platform (x11, wayland, android)')
-  endif
 endif
 
 with_dri2 = (with_dri or with_any_vk) and with_dri_platform == 'drm'