meson: add support for loongson's mips/mips64 arch.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6836>
This commit is contained in:
zhu yong 2020-09-23 10:37:01 +08:00 committed by Marge Bot
parent b54a0bb528
commit 7898993bcd

View File

@ -162,6 +162,8 @@ if dri_drivers.contains('auto')
dri_drivers = ['i915', 'i965', 'r100', 'r200', 'nouveau']
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
dri_drivers = []
elif ['mips', 'mips64'].contains(host_machine.cpu_family())
dri_drivers = ['r100', 'r200', 'nouveau']
else
error('Unknown architecture @0@. Please pass -Ddri-drivers to set driver options. Patches gladly accepted to fix this.'.format(
host_machine.cpu_family()))
@ -198,6 +200,10 @@ if gallium_drivers.contains('auto')
'kmsro', 'v3d', 'vc4', 'freedreno', 'etnaviv', 'nouveau',
'tegra', 'virgl', 'lima', 'panfrost', 'swrast'
]
elif ['mips', 'mips64'].contains(host_machine.cpu_family())
gallium_drivers = [
'r300', 'r600', 'radeonsi', 'nouveau', 'virgl', 'swrast'
]
else
error('Unknown architecture @0@. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to fix this.'.format(
host_machine.cpu_family()))
@ -246,6 +252,8 @@ if _vulkan_drivers.contains('auto')
_vulkan_drivers = ['amd', 'intel', 'swrast']
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
_vulkan_drivers = ['swrast']
elif ['mips', 'mips64'].contains(host_machine.cpu_family())
_vulkan_drivers = ['amd', 'swrast']
else
error('Unknown architecture @0@. Please pass -Dvulkan-drivers to set driver options. Patches gladly accepted to fix this.'.format(
host_machine.cpu_family()))