mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] mesalib: enable zstd shader cache compression
Date: Thu, 20 Feb 2020 12:28:15 +0100	[thread overview]
Message-ID: <20200220112815.15909-1-p.zabel@pengutronix.de> (raw)

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

                 reply	other threads:[~2020-02-20 11:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200220112815.15909-1-p.zabel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox