vulkan: automatically compile the `display` platform when available
[mesa.git] / src / vulkan / meson.build
index eedbad91cb02fa804160cf6013df549344fa7f3f..1e3f65c18d0a263d8a9e920585964831e5aefbef 100644 (file)
@@ -45,7 +45,7 @@ if with_platform_wayland
   vulkan_wsi_deps += dep_wayland_client
   vulkan_wsi_list += ['wayland']
 endif
-if with_platform_drm
+if system_has_kms_drm
   vulkan_wsi_args += '-DVK_USE_PLATFORM_DISPLAY_KHR'
   vulkan_wsi_deps += [dep_libdrm]
   vulkan_wsi_list += ['drm']