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 ...@@ -131,7 +131,7 @@ if with_platform_wayland
libradv_files += files('radv_wsi_wayland.c') libradv_files += files('radv_wsi_wayland.c')
endif endif
if with_platform_drm if system_has_kms_drm
radv_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR' radv_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR'
libradv_files += files('radv_wsi_display.c') libradv_files += files('radv_wsi_display.c')
endif endif
......
...@@ -81,7 +81,7 @@ if with_platform_wayland ...@@ -81,7 +81,7 @@ if with_platform_wayland
libtu_files += files('tu_wsi_wayland.c') libtu_files += files('tu_wsi_wayland.c')
endif endif
if with_platform_drm if system_has_kms_drm
tu_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR' tu_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR'
libtu_files += files('tu_wsi_display.c') libtu_files += files('tu_wsi_display.c')
endif endif
......
...@@ -155,7 +155,7 @@ if with_platform_wayland ...@@ -155,7 +155,7 @@ if with_platform_wayland
libanv_files += files('anv_wsi_wayland.c') libanv_files += files('anv_wsi_wayland.c')
endif endif
if with_platform_drm if system_has_kms_drm
anv_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR' anv_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR'
libanv_files += files('anv_wsi_display.c') libanv_files += files('anv_wsi_display.c')
endif endif
......
...@@ -45,7 +45,7 @@ if with_platform_wayland ...@@ -45,7 +45,7 @@ if with_platform_wayland
vulkan_wsi_deps += dep_wayland_client vulkan_wsi_deps += dep_wayland_client
vulkan_wsi_list += ['wayland'] vulkan_wsi_list += ['wayland']
endif endif
if with_platform_drm if system_has_kms_drm
vulkan_wsi_args += '-DVK_USE_PLATFORM_DISPLAY_KHR' vulkan_wsi_args += '-DVK_USE_PLATFORM_DISPLAY_KHR'
vulkan_wsi_deps += [dep_libdrm] vulkan_wsi_deps += [dep_libdrm]
vulkan_wsi_list += ['drm'] vulkan_wsi_list += ['drm']
......
...@@ -34,7 +34,7 @@ if with_platform_wayland ...@@ -34,7 +34,7 @@ if with_platform_wayland
] ]
endif endif
if with_platform_drm if system_has_kms_drm
files_vulkan_wsi += files('wsi_common_display.c') files_vulkan_wsi += files('wsi_common_display.c')
endif 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