soc-qcom-msm8953: Add workaround for GTK4 rendering issues (MR 4961)

This workaround is basically identical to the one recently
applied to soc-qcom-msm8916 (MR 4958).

Tested on xiaomi-tissot and xiaomi-daisy, where performance for
GTK4 applications goes from barely usable to fairly decent.

Closes: https://gitlab.com/postmarketOS/pmaports/-/issues/2220
Thanks: Nikita Travkin <nikita@trvn.ru>
Signed-off-by: Andrea Bolognani <eof@kiyuko.org>
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Andrea Bolognani 2024-03-24 11:39:54 +01:00 committed by Oliver Smith
parent 42042f691c
commit d13c816c57
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 20 additions and 1 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: Barnabas Czeman <trabarni@gmail.com>
pkgname=soc-qcom-msm8953
pkgdesc="Common package for Qualcomm MSM8953 devices"
pkgver=7
pkgver=8
pkgrel=0
url="https://postmarketos.org"
license="BSD-3-Clause"
@ -9,6 +9,7 @@ arch="aarch64"
options="!check !archcheck !tracedeps pmb:cross-native"
depends="$pkgname-ucm swclock-offset"
subpackages="
$pkgname-gpu
$pkgname-initramfs
$pkgname-modem
$pkgname-ucm
@ -20,6 +21,7 @@ source="
90-feedbackd-pm8xxx-vib.rules
q6voiced.conf
00-firmware.files
adreno-a506-quirks.sh
"
package() {
@ -53,9 +55,18 @@ modem() {
install -Dm644 "$srcdir"/q6voiced.conf "$subpkgdir"/etc/conf.d/q6voiced
}
gpu() {
pkgdesc="Various GPU workarounds for Adreno a506"
install_if="$pkgname=$pkgver-r$pkgrel mesa-dri-gallium"
install -Dm644 "$srcdir"/adreno-a506-quirks.sh \
"$subpkgdir"/etc/profile.d/adreno-a506-quirks.sh
}
sha512sums="
775ce08c1c7aebdc1347e57391cabedba7999fd91978c4b09b83c5a0394b83f771cb5333845d3845409cc3d9aaeedcfdff99579cc212f06508fe6e429eb30eb2 soc-qcom-msm8953-17f080f0762db6d7ef06a066c2ecff92095b0185.tar.gz
90fca4a3291a2c84c0b20e41308c4698374ba896e9365ca80dbfd0c0c4f7dc08317f3dd865a3c7f6707c81b02f5bb24136d1172253d2e4fdd50039bbbf02a178 90-feedbackd-pm8xxx-vib.rules
3a4a9322839d4b3ef9d79668a37840a9f444954759ae3c512e694051d2f9a2573db42ad6c4c1a5c75eeb861232a27ba1a8cef9b503decd54ead25a96e3dd6f98 q6voiced.conf
23cff3b1796fc61fb494cf6ad7e25ca968dd6eb55ccd17d303c354d7a1638b25d7f152feb973b130d74cfcea2cb6aed45dfe3843ae491ffad1440fcf35389284 00-firmware.files
d546c99ca8d406b4e2e3901a417e4e461314a38f2f01c48525e44ca524ad57af7bfc280f416bda90573b0bfb1cca27d45cb0a0ed44e999ef8d406a380d1fdbb2 adreno-a506-quirks.sh
"

View file

@ -0,0 +1,8 @@
# Various GPU workarounds for Adreno a506
# The 'ngl' GTK renderer, which is now used by default, has worse
# performance and is somewhat more prone to crashes. Use the 'gl'
# renderer until these issues have been sorted out.
#
# https://gitlab.gnome.org/GNOME/gtk/-/issues/6576
export GSK_RENDERER=gl