From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1j4k0K-0006au-Bd for ptxdist@pengutronix.de; Thu, 20 Feb 2020 12:28:28 +0100 From: Philipp Zabel Date: Thu, 20 Feb 2020 12:28:15 +0100 Message-Id: <20200220112815.15909-1-p.zabel@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] mesalib: enable zstd shader cache compression List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Signed-off-by: Philipp Zabel --- 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