Skip to content

Commit

Permalink
mesa: build dri for arm
Browse files Browse the repository at this point in the history
The isAarch64 applies only to 64bit arm. The commit
e7a2c65 missed support for 32bit arm.

This also removes kmsro as it is not used by Mesa meson.build file. The
kmsro is detected from other galium drivers. This might not be correct
and there probably should be a way to enable this in the upstream but
for now this does nothing.
  • Loading branch information
Cynerd committed Mar 16, 2023
1 parent 4fd43fb commit 48f48c3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkgs/development/libraries/mesa/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
if stdenv.isLinux then
[
"d3d12" # WSL emulated GPU (aka Dozen)
"kmsro" # helper driver for display-only devices
"nouveau" # Nvidia
"radeonsi" # new AMD (GCN+)
"r300" # very old AMD
Expand All @@ -19,15 +18,15 @@
"svga" # VMWare virtualized GPU
"virgl" # QEMU virtualized GPU (aka VirGL)
"zink" # generic OpenGL over Vulkan, experimental
]
++ lib.optionals stdenv.isAarch64 [
] ++ lib.optionals (stdenv.isAarch64 || stdenv.isAarch32) [
"etnaviv" # Vivante GPU designs (mostly NXP/Marvell SoCs)
"freedreno" # Qualcomm Adreno (all Qualcomm SoCs)
"lima" # ARM Mali 4xx
"panfrost" # ARM Mali Midgard and up (T/G series)
"vc4" # Broadcom VC4 (Raspberry Pi 0-3)
] ++ lib.optionals stdenv.isAarch64 [
"tegra" # Nvidia Tegra SoCs
"v3d" # Broadcom VC5 (Raspberry Pi 4)
"vc4" # Broadcom VC4 (Raspberry Pi 0-3)
] ++ lib.optionals stdenv.hostPlatform.isx86 [
"iris" # new Intel, could work on non-x86 with PCIe cards, but doesn't build as of 22.3.4
"crocus" # Intel legacy, x86 only
Expand Down

0 comments on commit 48f48c3

Please sign in to comment.