aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-06-25 14:23:15 +0100
committerMarge Bot <[email protected]>2020-07-10 13:48:24 +0000
commit448eb19158f483d807ef5bff5242be3df82c7787 (patch)
tree8d1a1c4416afd21ff25744f92b7f30832ec90caa /src/vulkan
parenta38e21d6683aeecb51aea4f933a77c6e7f1a6179 (diff)
vulkan: automatically compile the `display` platform when available
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3161>
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/meson.build2
-rw-r--r--src/vulkan/wsi/meson.build2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/meson.build b/src/vulkan/meson.build
index eedbad91cb0..1e3f65c18d0 100644
--- a/src/vulkan/meson.build
+++ b/src/vulkan/meson.build
@@ -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']
diff --git a/src/vulkan/wsi/meson.build b/src/vulkan/wsi/meson.build
index d098ba6eb4e..0186ca6d4a1 100644
--- a/src/vulkan/wsi/meson.build
+++ b/src/vulkan/wsi/meson.build
@@ -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