@@ -2577,6 +2577,7 @@ (define-public python-hypothesmith
programs, something like CSmith, a random generator of C programs.")
(license license:mpl2.0)))
+;; WARNING: This package is a dependency of mesa.
(define-public python-lit
(package
(name "python-lit")
@@ -320,19 +320,24 @@ (define-public mesa
libxxf86vm
xorgproto))
(inputs
- (list elfutils ;libelf required for r600 when using llvm
- expat
- (force libva-without-mesa)
- libxml2
- libxrandr
- libxvmc
- llvm-for-mesa
- vulkan-loader
- wayland
- wayland-protocols
- `(,zstd "lib")))
+ (append
+ (if (target-aarch64?)
+ (list clang-18
+ llvm-18)
+ (list llvm-for-mesa))
+ (list elfutils ;libelf required for r600 when using llvm
+ expat
+ (force libva-without-mesa)
+ libxml2
+ libxrandr
+ libxvmc
+ vulkan-loader
+ wayland
+ wayland-protocols
+ `(,zstd "lib"))))
(native-inputs
- (cons* bison
+ (append
+ (list bison
flex
gettext-minimal
glslang
@@ -340,13 +345,16 @@ (define-public mesa
python-libxml2 ;for OpenGL ES 1.1 and 2.0 support
python-mako
python-wrapper
- (@ (gnu packages base) which)
- (if (%current-target-system)
- (list cmake-minimal-cross
- pkg-config-for-build
- wayland
- wayland-protocols)
- '())))
+ (@ (gnu packages base) which))
+ (if (target-aarch64?)
+ (list libclc)
+ '())
+ (if (%current-target-system)
+ (list cmake-minimal-cross
+ pkg-config-for-build
+ wayland
+ wayland-protocols)
+ '())))
(outputs '("out" "bin"))
(arguments
(list
@@ -464,6 +472,10 @@ (define-public mesa
;; https://gitlab.freedesktop.org/mesa/mesa/-/issues/4091).
`((substitute* "src/util/meson.build"
((".*'tests/u_debug_stack_test.cpp',.*") ""))))
+ ("aarch64-linux"
+ ;; Disable some of the llvmpipe tests.
+ `((substitute* "src/gallium/drivers/llvmpipe/meson.build"
+ (("'lp_test_format', ") ""))))
("armhf-linux"
;; Disable some of the llvmpipe tests.
`((substitute* "src/gallium/drivers/llvmpipe/meson.build"
@@ -586,8 +598,10 @@ (define-public mesa-opencl
(modify-inputs (package-inputs mesa)
(prepend libclc)))
(native-inputs
- (modify-inputs (package-native-inputs mesa)
- (prepend clang-15)))))
+ (if (target-aarch64?)
+ (package-native-inputs mesa)
+ (modify-inputs (package-native-inputs mesa)
+ (prepend clang-15))))))
(define-public mesa-opencl-icd
(package/inherit mesa-opencl
@@ -1915,6 +1915,7 @@ (define-public libcxx+libcxxabi-6
(native-inputs
(list clang-6 llvm-6 libcxxabi-6))))
+;; WARNING: This package is a dependency of mesa.
(define-public libclc
(package
(name "libclc")
@@ -152,6 +152,7 @@ (define-public spirv-cross
SPIR-V, aiming to emit GLSL or MSL that looks like human-written code.")
(license license:asl2.0)))
+;; WARNING: This package is a dependency of mesa.
(define-public spirv-llvm-translator
(package
(name "spirv-llvm-translator")