aboutsummaryrefslogtreecommitdiff
path: root/pgo
diff options
context:
space:
mode:
authorStanislav Ochotnický <sochotnicky@redhat.com>2021-10-08 14:28:28 +0000
committerStanislav Ochotnický <sochotnicky@redhat.com>2021-10-08 14:34:36 +0000
commit85aaff68fbda7c84f95ab4f20da1e907c0657e01 (patch)
tree8ff27746c2a65f319b582f829713cc2ff7b846be /pgo
parentMerge branch 'fix-0px-csd-crash' (diff)
pgo: Use pixman renderer by default for PGO builds
Without pixman renderer override pgo builds in cage/sway require access to actual render devices. In Gentoo's case the builds are run as ordinary user and within a "sandbox" which prevents and logs access outside of predefined places during build. So let's default to pixman renderer for the PGO builds. Hopefully that won't matter for the pgo optimizations to do the right thing within foot.
Diffstat (limited to 'pgo')
-rwxr-xr-xpgo/full-headless-cage.sh2
-rwxr-xr-xpgo/full-headless-sway.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/pgo/full-headless-cage.sh b/pgo/full-headless-cage.sh
index ad5d0264..eacb0c33 100755
--- a/pgo/full-headless-cage.sh
+++ b/pgo/full-headless-cage.sh
@@ -8,7 +8,7 @@ blddir=$(realpath "${2}")
runtime_dir=$(mktemp -d)
trap "rm -rf '${runtime_dir}'" EXIT INT HUP TERM
-XDG_RUNTIME_DIR="${runtime_dir}" WLR_BACKENDS=headless cage "${srcdir}"/pgo/full-inner.sh "${srcdir}" "${blddir}"
+XDG_RUNTIME_DIR="${runtime_dir}" WLR_RENDERER=pixman WLR_BACKENDS=headless cage "${srcdir}"/pgo/full-inner.sh "${srcdir}" "${blddir}"
# Cage’s exit code doesn’t reflect our script’s exit code
[ -f "${blddir}"/pgo-ok ] || exit 1
diff --git a/pgo/full-headless-sway.sh b/pgo/full-headless-sway.sh
index bbf038b9..48dbcb94 100755
--- a/pgo/full-headless-sway.sh
+++ b/pgo/full-headless-sway.sh
@@ -18,7 +18,7 @@ trap cleanup EXIT INT HUP TERM
> "${sway_conf}" echo "exec '${srcdir}'/pgo/full-headless-sway-inner.sh '${srcdir}' '${blddir}'"
# Run Sway. full-headless-sway-inner.sh ends with a ‘swaymsg exit’
-XDG_RUNTIME_DIR="${runtime_dir}" WLR_BACKENDS=headless sway -c "${sway_conf}"
+XDG_RUNTIME_DIR="${runtime_dir}" WLR_RENDERER=pixman WLR_BACKENDS=headless sway -c "${sway_conf}"
# Sway’s exit code doesn’t reflect our script’s exit code
[ -f "${blddir}"/pgo-ok ] || exit 1