Module: Mesa Branch: main Commit: cede4e7ac3c481f872369a1e4873597103b46897 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cede4e7ac3c481f872369a1e4873597103b46897
Author: Mark Collins <[email protected]> Date: Tue Nov 7 15:49:54 2023 +0000 meson: Only include virtio when DRM available The unconditional inclusion of the `virtio` subdirectory introduced by !24733 causes a full dependency on DRM, it breaks any systems that have `system_has_kms_drm = false`, including Turnip with just the KGSL KMD. A temporary solution to this is gating the inclusion when `system_has_kms_drm` isn't set but this should be replaced with more specific gating in the future. Signed-off-by: Mark Collins <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26100> --- src/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index bc200fe1435..1293538b8f6 100644 --- a/src/meson.build +++ b/src/meson.build @@ -91,7 +91,9 @@ endif if with_gallium_etnaviv subdir('etnaviv') endif -subdir('virtio') +if system_has_kms_drm + subdir('virtio') +endif if with_gallium_freedreno or with_freedreno_vk or with_tools.contains('freedreno') subdir('freedreno') endif
