[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/41: gnu: mesa: Add support for riscv64-linux.
From: |
guix-commits |
Subject: |
13/41: gnu: mesa: Add support for riscv64-linux. |
Date: |
Thu, 9 Sep 2021 08:39:32 -0400 (EDT) |
efraim pushed a commit to branch wip-riscv
in repository guix.
commit 45cbd038fd0051f6df9d20fa1a1b4f788607fe0c
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Aug 5 12:49:23 2021 +0300
gnu: mesa: Add support for riscv64-linux.
* gnu/packages/gl.scm (mesa)[inputs]: Add llvm-11 on riscv64-linux.
[native-inputs]: Add glslang on riscv64-linux.
[arguments]: In configure-flags adjust gallium-drivers to swap the
power* and intel drivers for the fallback option. Specify riscv64-linux
configure options for vulkan-drivers. Enable the vulkan-overlay-layer
and llvm support. Adjust the custom 'disable-failing-test phase to have
a riscv64-linux section.
---
gnu/packages/gl.scm | 26 +++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 769389e..12eae9b 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -274,7 +274,8 @@ also known as DXTn or DXTC) for Mesa.")
("libxrandr" ,libxrandr)
("libxvmc" ,libxvmc)
,@(match (%current-system)
- ((or "x86_64-linux" "i686-linux" "powerpc64le-linux"
"aarch64-linux" "powerpc-linux")
+ ((or "x86_64-linux" "i686-linux" "powerpc64le-linux"
"aarch64-linux"
+ "powerpc-linux" "riscv64-linux")
;; Note: update the 'clang' input of mesa-opencl when bumping
this.
`(("llvm" ,llvm-11)))
(_
@@ -286,7 +287,8 @@ also known as DXTn or DXTC) for Mesa.")
("flex" ,flex)
("gettext" ,gettext-minimal)
,@(match (%current-system)
- ((or "x86_64-linux" "i686-linux" "powerpc64le-linux"
"aarch64-linux" "powerpc-linux")
+ ((or "x86_64-linux" "i686-linux" "powerpc64le-linux"
"aarch64-linux"
+ "powerpc-linux" "riscv64-linux")
`(("glslang" ,glslang)))
(_
`()))
@@ -301,10 +303,10 @@ also known as DXTn or DXTC) for Mesa.")
((or "armhf-linux" "aarch64-linux")
;; TODO: Fix svga driver for non-Intel architectures.
'("-Dgallium-drivers=etnaviv,freedreno,kmsro,lima,nouveau,panfrost,r300,r600,swrast,tegra,v3d,vc4,virgl"))
- ((or "powerpc64le-linux" "powerpc-linux")
- '("-Dgallium-drivers=nouveau,r300,r600,radeonsi,swrast,virgl"))
+ ((or "x86_64-linux" "i686-linux")
+
'("-Dgallium-drivers=iris,nouveau,r300,r600,radeonsi,svga,swrast,virgl"))
(_
-
'("-Dgallium-drivers=iris,nouveau,r300,r600,radeonsi,svga,swrast,virgl")))
+ '("-Dgallium-drivers=nouveau,r300,r600,radeonsi,swrast,virgl")))
;; Enable various optional features. TODO: opencl requires libclc,
;; omx requires libomxil-bellagio
"-Dplatforms=x11,wayland"
@@ -327,12 +329,15 @@ also known as DXTn or DXTC) for Mesa.")
'("-Dvulkan-drivers=amd,swrast"))
("aarch64-linux"
'("-Dvulkan-drivers=freedreno,amd,broadcom,swrast"))
+ ("riscv64-linux"
+ '("-Dvulkan-drivers=amd,swrast"))
(_
'("-Dvulkan-drivers=auto")))
;; Enable the Vulkan overlay layer on architectures using llvm.
,@(match (%current-system)
- ((or "x86_64-linux" "i686-linux" "powerpc64le-linux"
"aarch64-linux" "powerpc-linux")
+ ((or "x86_64-linux" "i686-linux" "powerpc64le-linux"
"aarch64-linux"
+ "powerpc-linux" "riscv64-linux")
'("-Dvulkan-overlay-layer=true"))
(_
'()))
@@ -346,7 +351,7 @@ also known as DXTn or DXTC) for Mesa.")
((or "x86_64-linux" "i686-linux")
'("-Ddri-drivers=i915,i965,nouveau,r200,r100"
"-Dllvm=enabled")) ; default is x86/x86_64 only
- ((or "powerpc64le-linux" "aarch64-linux" "powerpc-linux")
+ ((or "powerpc64le-linux" "aarch64-linux" "powerpc-linux"
"riscv64-linux")
'("-Ddri-drivers=nouveau,r200,r100"
"-Dllvm=enabled"))
(_
@@ -365,6 +370,13 @@ also known as DXTn or DXTC) for Mesa.")
(add-after 'unpack 'disable-failing-test
(lambda _
,@(match (%current-system)
+ ("riscv64-linux"
+ ;; According to the test logs the llvm JIT is not designed
+ ;; for this architecture and the llvmpipe tests all segfault.
+ ;; The same is true for mesa:gallium / osmesa-render.
+ `((substitute* '("src/gallium/drivers/llvmpipe/meson.build"
+ "src/gallium/targets/osmesa/meson.build")
+ (("if with_tests") "if false"))))
("powerpc64le-linux"
;; Disable some of the llvmpipe tests.
`((substitute* "src/gallium/drivers/llvmpipe/lp_test_arit.c"
- branch wip-riscv created (now bca71a8), guix-commits, 2021/09/09
- 01/41: utils: Define 'target-riscv?' predicate., guix-commits, 2021/09/09
- 04/41: gnu: %boot3-inputs: Add missing input., guix-commits, 2021/09/09
- 08/41: gnu: elfutils: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 09/41: gnu: pcre: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 11/41: gnu: libtool: Fix test suite on riscv64-linux., guix-commits, 2021/09/09
- 02/41: gnu: bootstrap: Add support for riscv64-linux., guix-commits, 2021/09/09
- 03/41: gnu: gcc-boot0: Use libstdc++-boot0-gcc7 on riscv64-linux., guix-commits, 2021/09/09
- 06/41: gnu: %final-inputs: Add implied gcc:lib input., guix-commits, 2021/09/09
- 21/41: gnu: texlive-latex-base: Skip JIT formats on riscv64-linux., guix-commits, 2021/09/09
- 13/41: gnu: mesa: Add support for riscv64-linux.,
guix-commits <=
- 17/41: gnu: openlibm: Remove riscv64-linux from supported systems., guix-commits, 2021/09/09
- 19/41: gnu: lz4: Build on riscv64-linux without valgrind., guix-commits, 2021/09/09
- 20/41: gnu: lapack: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 28/41: gnu: webrtc-audio-processing: Fix riscv64 detection., guix-commits, 2021/09/09
- 30/41: system: system-linux-image-file-name: Set kernel name for riscv64-linux., guix-commits, 2021/09/09
- 14/41: gnu: pcre2: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 25/41: gnu: libfaketime: Adjust flags on riscv64-linux., guix-commits, 2021/09/09
- 24/41: gnu: libaio: Fix test suite on riscv64-linux., guix-commits, 2021/09/09
- 15/41: gnu: icu4c: Skip tests on riscv64-linux., guix-commits, 2021/09/09
- 36/41: gnu: postgresql: Fix building on riscv64-linux., guix-commits, 2021/09/09