mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 16:00:08 +01:00
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:
parent
b54a0bb528
commit
7898993bcd
1 changed files with 8 additions and 0 deletions
|
|
@ -162,6 +162,8 @@ if dri_drivers.contains('auto')
|
||||||
dri_drivers = ['i915', 'i965', 'r100', 'r200', 'nouveau']
|
dri_drivers = ['i915', 'i965', 'r100', 'r200', 'nouveau']
|
||||||
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||||||
dri_drivers = []
|
dri_drivers = []
|
||||||
|
elif ['mips', 'mips64'].contains(host_machine.cpu_family())
|
||||||
|
dri_drivers = ['r100', 'r200', 'nouveau']
|
||||||
else
|
else
|
||||||
error('Unknown architecture @0@. Please pass -Ddri-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
error('Unknown architecture @0@. Please pass -Ddri-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
||||||
host_machine.cpu_family()))
|
host_machine.cpu_family()))
|
||||||
|
|
@ -198,6 +200,10 @@ if gallium_drivers.contains('auto')
|
||||||
'kmsro', 'v3d', 'vc4', 'freedreno', 'etnaviv', 'nouveau',
|
'kmsro', 'v3d', 'vc4', 'freedreno', 'etnaviv', 'nouveau',
|
||||||
'tegra', 'virgl', 'lima', 'panfrost', 'swrast'
|
'tegra', 'virgl', 'lima', 'panfrost', 'swrast'
|
||||||
]
|
]
|
||||||
|
elif ['mips', 'mips64'].contains(host_machine.cpu_family())
|
||||||
|
gallium_drivers = [
|
||||||
|
'r300', 'r600', 'radeonsi', 'nouveau', 'virgl', 'swrast'
|
||||||
|
]
|
||||||
else
|
else
|
||||||
error('Unknown architecture @0@. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
error('Unknown architecture @0@. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
||||||
host_machine.cpu_family()))
|
host_machine.cpu_family()))
|
||||||
|
|
@ -246,6 +252,8 @@ if _vulkan_drivers.contains('auto')
|
||||||
_vulkan_drivers = ['amd', 'intel', 'swrast']
|
_vulkan_drivers = ['amd', 'intel', 'swrast']
|
||||||
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||||||
_vulkan_drivers = ['swrast']
|
_vulkan_drivers = ['swrast']
|
||||||
|
elif ['mips', 'mips64'].contains(host_machine.cpu_family())
|
||||||
|
_vulkan_drivers = ['amd', 'swrast']
|
||||||
else
|
else
|
||||||
error('Unknown architecture @0@. Please pass -Dvulkan-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
error('Unknown architecture @0@. Please pass -Dvulkan-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
||||||
host_machine.cpu_family()))
|
host_machine.cpu_family()))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue