From a0de381fb3ab3c7309b3e5a2c12f88f970d02d96 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Fri, 18 May 2018 16:02:08 +0100 Subject: [PATCH] wrap: Add libtxc_dxtn.so to the library search path Signed-off-by: Simon McVittie <smcv@collabora.com> --- pressure-vessel-wrap | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pressure-vessel-wrap b/pressure-vessel-wrap index b1f7b43e4..41c90f65c 100755 --- a/pressure-vessel-wrap +++ b/pressure-vessel-wrap @@ -604,6 +604,21 @@ if [ -n "$runtime" ]; then --provider="/" \ "only-dependencies:path-match:$dir/dri/*" fi + + # S3TC or S2TC support for Mesa + if [ -e "$dir/libtxc_dxtn.so" ]; then + "$BWRAP" \ + --ro-bind / / \ + --bind "$tmpdir/overrides" "$tmpdir/overrides" \ + --tmpfs "$scratch" \ + "${bind_usr_result[@]}" \ + "$here/${t}-capsule-capture-libs" \ + --container="$scratch" \ + --link-target="/run/host" \ + --dest="$tmpdir/overrides/lib/$t" \ + --provider="/" \ + "path-match:$dir/libtxc_dxtn.so" + fi done fi done -- GitLab