mirror of
https://abf.rosa.ru/djam/mesa.git
synced 2025-02-24 07:02:54 +00:00
41 lines
2 KiB
Diff
41 lines
2 KiB
Diff
![]() |
diff -up mesa-19.2.0-rc3/meson.build.2~ mesa-19.2.0-rc3/meson.build
|
||
|
--- mesa-19.2.0-rc3/meson.build.2~ 2019-09-11 18:23:35.000000000 +0200
|
||
|
+++ mesa-19.2.0-rc3/meson.build 2019-09-13 01:42:07.786526054 +0200
|
||
|
@@ -125,8 +125,8 @@ if dri_drivers.contains('auto')
|
||
|
# TODO: PPC, Sparc
|
||
|
if ['x86', 'x86_64'].contains(host_machine.cpu_family())
|
||
|
dri_drivers = ['i915', 'i965', 'r100', 'r200', 'nouveau']
|
||
|
- elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||
|
- dri_drivers = []
|
||
|
+ elif ['arm', 'aarch64', 'riscv64'].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()))
|
||
|
@@ -160,7 +160,13 @@ if gallium_drivers.contains('auto')
|
||
|
elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||
|
gallium_drivers = [
|
||
|
'kmsro', 'v3d', 'vc4', 'freedreno', 'etnaviv', 'nouveau',
|
||
|
- 'tegra', 'virgl', 'lima', 'panfrost', 'swrast'
|
||
|
+ 'tegra', 'virgl', 'lima', 'panfrost', 'swrast',
|
||
|
+ 'r300', 'r600', 'radeonsi'
|
||
|
+ ]
|
||
|
+ elif ['riscv64'].contains(host_machine.cpu_family())
|
||
|
+ gallium_drivers = [
|
||
|
+ 'nouveau', 'swrast',
|
||
|
+ 'r300', 'r600', 'radeonsi'
|
||
|
]
|
||
|
else
|
||
|
error('Unknown architecture @0@. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
||
|
@@ -215,8 +221,8 @@ if _vulkan_drivers.contains('auto')
|
||
|
if system_has_kms_drm
|
||
|
if host_machine.cpu_family().startswith('x86')
|
||
|
_vulkan_drivers = ['amd', 'intel']
|
||
|
- elif ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||
|
- _vulkan_drivers = []
|
||
|
+ elif ['arm', 'aarch64', 'riscv64'].contains(host_machine.cpu_family())
|
||
|
+ _vulkan_drivers = ['amd']
|
||
|
else
|
||
|
error('Unknown architecture @0@. Please pass -Dvulkan-drivers to set driver options. Patches gladly accepted to fix this.'.format(
|
||
|
host_machine.cpu_family()))
|