Commit 448eb191 authored by Eric Engestrom's avatar Eric Engestrom Committed by Marge Bot

vulkan: automatically compile the `display` platform when available

Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Bas Nieuwenhuizen's avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Part-of: <mesa/mesa!3161>
parent a38e21d6
......@@ -131,7 +131,7 @@ if with_platform_wayland
libradv_files += files('radv_wsi_wayland.c')
endif
if with_platform_drm
if system_has_kms_drm
radv_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR'
libradv_files += files('radv_wsi_display.c')
endif
......
......@@ -81,7 +81,7 @@ if with_platform_wayland
libtu_files += files('tu_wsi_wayland.c')
endif
if with_platform_drm
if system_has_kms_drm
tu_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR'
libtu_files += files('tu_wsi_display.c')
endif
......
......@@ -155,7 +155,7 @@ if with_platform_wayland
libanv_files += files('anv_wsi_wayland.c')
endif
if with_platform_drm
if system_has_kms_drm
anv_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR'
libanv_files += files('anv_wsi_display.c')
endif
......
......@@ -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']
......
......@@ -34,7 +34,7 @@ if with_platform_wayland
]
endif
if with_platform_drm
if system_has_kms_drm
files_vulkan_wsi += files('wsi_common_display.c')
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment