* [ptxdist] [PATCH] mesalib: enable zstd shader cache compression
@ 2020-02-20 11:28 Philipp Zabel
0 siblings, 0 replies; only message in thread
From: Philipp Zabel @ 2020-02-20 11:28 UTC (permalink / raw)
To: ptxdist
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
rules/mesalib.in | 6 ++++++
rules/mesalib.make | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/rules/mesalib.in b/rules/mesalib.in
index ca49b7f7feb5..79db333dcdbc 100644
--- a/rules/mesalib.in
+++ b/rules/mesalib.in
@@ -30,6 +30,8 @@ menuconfig MESALIB
select XORG_LIB_XSHMFENCE if MESALIB_DRI3
select EXPAT
select ZLIB
+ select ZSTD if MESALIB_ZSTD
+ select ZSTD_LIBZSTD if MESALIB_ZSTD
help
Mesa is a 3-D graphics library with an API which is very
similar to that of OpenGL. See the project homepage for
@@ -196,5 +198,9 @@ config MESALIB_VULKAN_INTEL
bool
prompt "Intel (Anvil)"
+config MESALIB_ZSTD
+ bool
+ prompt "use Zstandard for shader cache compression"
+
endif
diff --git a/rules/mesalib.make b/rules/mesalib.make
index fdc65c91da31..df0e1aaf36d3 100644
--- a/rules/mesalib.make
+++ b/rules/mesalib.make
@@ -142,7 +142,7 @@ MESALIB_CONF_OPT := \
-Dvulkan-overlay-layer=false \
-Dxlib-lease=false \
-Dxvmc-libs-path=/usr/lib \
- -Dzstd=false
+ -Dzstd=$(call ptx/truefalse, PTXCONF_MESALIB_ZSTD)
# ----------------------------------------------------------------------------
# Compile
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-20 11:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-20 11:28 [ptxdist] [PATCH] mesalib: enable zstd shader cache compression Philipp Zabel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox