podiki pushed a commit to branch master
in repository guix.
commit 090c254fe7713db330636dae2c204c8282207cc8
Author: Sigve Sudland <[email protected]>
AuthorDate: Wed Jul 19 23:02:34 2023 +0200
gnu: mesa: Enable zstd compression for shader cache.
* gnu/packages/gl.scm (mesa)[inputs]: Add zstd:lib.
[arguments]: Add '-Dzstd=enabled' to configure-flags.
Signed-off-by: 宋文武 <[email protected]>
---
gnu/packages/gl.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 9325d41907..86be6e0bb1 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -298,7 +298,8 @@ also known as DXTn or DXTC) for Mesa.")
libxvmc
llvm-for-mesa
wayland
- wayland-protocols))
+ wayland-protocols
+ `(,zstd "lib")))
(native-inputs
(list bison
flex
@@ -362,6 +363,9 @@ svga,swrast,virgl")))
;; 21.3.x releases to avoid functionality regressions.
"-Dvideo-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc"
+ ;; Enable ZSTD compression for shader cache.
+ "-Dzstd=enabled"
+
;; Also enable the tests.
"-Dbuild-tests=true"