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: 宋文武 <iyzsong@member.fsf.org>
This commit is contained in:
Sigve Sudland 2023-07-19 23:02:34 +02:00 committed by John Kehayias
parent 9d4cd681da
commit 090c254fe7
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -298,7 +298,8 @@ (define-public mesa
libxvmc
llvm-for-mesa
wayland
wayland-protocols))
wayland-protocols
`(,zstd "lib")))
(native-inputs
(list bison
flex
@ -362,6 +363,9 @@ (define-public mesa
;; 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"