mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 11:40:10 +01:00
meson: Use system_has_kms_drm in default driver selection
Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
parent
c57d5ea3bb
commit
e30a165be2
1 changed files with 5 additions and 3 deletions
|
|
@ -89,6 +89,8 @@ if (with_gles1 or with_gles2) and not with_opengl
|
||||||
error('building OpenGL ES without OpenGL is not supported.')
|
error('building OpenGL ES without OpenGL is not supported.')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 'linux'].contains(host_machine.system())
|
||||||
|
|
||||||
with_dri = false
|
with_dri = false
|
||||||
with_dri_i915 = false
|
with_dri_i915 = false
|
||||||
with_dri_i965 = false
|
with_dri_i965 = false
|
||||||
|
|
@ -98,7 +100,7 @@ with_dri_nouveau = false
|
||||||
with_dri_swrast = false
|
with_dri_swrast = false
|
||||||
_drivers = get_option('dri-drivers')
|
_drivers = get_option('dri-drivers')
|
||||||
if _drivers == 'auto'
|
if _drivers == 'auto'
|
||||||
if host_machine.system() == 'linux'
|
if system_has_kms_drm
|
||||||
# TODO: PPC, Sparc
|
# TODO: PPC, Sparc
|
||||||
if ['x86', 'x86_64'].contains(host_machine.cpu_family())
|
if ['x86', 'x86_64'].contains(host_machine.cpu_family())
|
||||||
_drivers = 'i915,i965,r100,r200,nouveau'
|
_drivers = 'i915,i965,r100,r200,nouveau'
|
||||||
|
|
@ -142,7 +144,7 @@ with_gallium_virgl = false
|
||||||
with_gallium_swr = false
|
with_gallium_swr = false
|
||||||
_drivers = get_option('gallium-drivers')
|
_drivers = get_option('gallium-drivers')
|
||||||
if _drivers == 'auto'
|
if _drivers == 'auto'
|
||||||
if host_machine.system() == 'linux'
|
if system_has_kms_drm
|
||||||
# TODO: PPC, Sparc
|
# TODO: PPC, Sparc
|
||||||
if ['x86', 'x86_64'].contains(host_machine.cpu_family())
|
if ['x86', 'x86_64'].contains(host_machine.cpu_family())
|
||||||
_drivers = 'r300,r600,radeonsi,nouveau,virgl,svga,swrast'
|
_drivers = 'r300,r600,radeonsi,nouveau,virgl,svga,swrast'
|
||||||
|
|
@ -190,7 +192,7 @@ with_amd_vk = false
|
||||||
with_any_vk = false
|
with_any_vk = false
|
||||||
_vulkan_drivers = get_option('vulkan-drivers')
|
_vulkan_drivers = get_option('vulkan-drivers')
|
||||||
if _vulkan_drivers == 'auto'
|
if _vulkan_drivers == 'auto'
|
||||||
if host_machine.system() == 'linux'
|
if system_has_kms_drm
|
||||||
if host_machine.cpu_family().startswith('x86')
|
if host_machine.cpu_family().startswith('x86')
|
||||||
_vulkan_drivers = 'amd,intel'
|
_vulkan_drivers = 'amd,intel'
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue