mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
meson: fix vdrm inclusion logic
This is about which driver use vdrm, not which OS we're on.
Fixes the build on non-KMS/DRM system.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12899
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35723>
(cherry picked from commit a1daeb87a8)
This commit is contained in:
parent
b615e50845
commit
1bc18de415
3 changed files with 9 additions and 2 deletions
|
|
@ -3844,7 +3844,7 @@
|
|||
"description": "meson: fix vdrm inclusion logic",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -287,6 +287,13 @@ if freedreno_kmds.length() != 0 and freedreno_kmds != [ 'msm' ] and with_freedre
|
|||
endif
|
||||
endif
|
||||
|
||||
with_vdrm = [
|
||||
with_amdgpu_virtio,
|
||||
freedreno_kmds.contains('virtio'),
|
||||
with_gallium_asahi,
|
||||
with_asahi_vk,
|
||||
].contains(true)
|
||||
|
||||
with_dri = false
|
||||
if with_gallium and system_has_kms_drm
|
||||
_glx = get_option('glx')
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ endif
|
|||
if with_any_intel
|
||||
subdir('intel')
|
||||
endif
|
||||
if system_has_kms_drm or with_gallium_virgl or with_virtio_vk
|
||||
if with_vdrm or with_gallium_virgl or with_virtio_vk
|
||||
subdir('virtio')
|
||||
endif
|
||||
if with_gallium_radeonsi or with_amd_vk or with_gallium_r300 or with_gallium_r600
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue