mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 07:19:50 +00: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
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user