vulkan: automatically compile the `display` platform when available
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3161>
This commit is contained in:
parent
a38e21d668
commit
448eb19158
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue