me
/
guix
Archived
1
0
Fork 0

gnu: mesa: Ungraft.

* gnu/packages/gl.scm (mesa)[configure-flags]: Add intel_hasvk and swrast to
vulkan-drivers.
[replacement]: Remove.
(mesa-vulkan-hasvk): Remove variable.
master
John Kehayias 2023-07-25 16:18:30 -04:00
parent c7cf2efb7a
commit 9d4cd681da
No known key found for this signature in database
GPG Key ID: 499097AE5EA815D9
1 changed files with 1 additions and 17 deletions

View File

@ -279,7 +279,6 @@ also known as DXTn or DXTC) for Mesa.")
(base32 (base32
"1mcjf41x2bhxs6yxars7nh2vfryfw50g6rvbcfbb1wqdv2jn4qrq")))) "1mcjf41x2bhxs6yxars7nh2vfryfw50g6rvbcfbb1wqdv2jn4qrq"))))
(build-system meson-build-system) (build-system meson-build-system)
(replacement mesa-vulkan-hasvk)
(propagated-inputs (propagated-inputs
;; The following are in the Requires.private field of gl.pc. ;; The following are in the Requires.private field of gl.pc.
(list libdrm (list libdrm
@ -346,7 +345,7 @@ svga,swrast,virgl")))
;; Explicitly enable Vulkan on some architectures. ;; Explicitly enable Vulkan on some architectures.
#$@(match (%current-system) #$@(match (%current-system)
((or "i686-linux" "x86_64-linux") ((or "i686-linux" "x86_64-linux")
'("-Dvulkan-drivers=intel,amd")) '("-Dvulkan-drivers=intel,intel_hasvk,amd,swrast"))
((or "powerpc64le-linux" "powerpc-linux") ((or "powerpc64le-linux" "powerpc-linux")
'("-Dvulkan-drivers=amd,swrast")) '("-Dvulkan-drivers=amd,swrast"))
("aarch64-linux" ("aarch64-linux"
@ -528,21 +527,6 @@ device drivers allows Mesa to be used in many different environments ranging
from software emulation to complete hardware acceleration for modern GPUs.") from software emulation to complete hardware acceleration for modern GPUs.")
(license license:x11))) (license license:x11)))
(define mesa-vulkan-hasvk
(let ((graft mesa)
(vulk "-Dvulkan-drivers=intel,amd"))
(package
(inherit graft)
(arguments
(substitute-keyword-arguments (package-arguments graft)
((#:configure-flags flags)
#~(begin
(use-modules (ice-9 match))
(map (match-lambda
(#$vulk (string-append #$vulk ",intel_hasvk,swrast"))
(x x))
#$flags))))))))
(define-public mesa-opencl (define-public mesa-opencl
(package/inherit mesa (package/inherit mesa
(name "mesa-opencl") (name "mesa-opencl")