From dfdccbb1ae347f97c04abe77aabe69bf22570b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20Cz=C3=A9m=C3=A1n?= Date: Wed, 23 Oct 2024 10:25:40 +0200 Subject: [PATCH] soc-qcom-msm8974: initial package (MR 5732) Add initial SoC pacakge for common configs of msm8974 devices. --- device/testing/soc-qcom-msm8974/APKBUILD | 33 +++++++++++++++++++ .../soc-qcom-msm8974/adreno-a330-quirks.sh | 7 ++++ 2 files changed, 40 insertions(+) create mode 100644 device/testing/soc-qcom-msm8974/APKBUILD create mode 100644 device/testing/soc-qcom-msm8974/adreno-a330-quirks.sh diff --git a/device/testing/soc-qcom-msm8974/APKBUILD b/device/testing/soc-qcom-msm8974/APKBUILD new file mode 100644 index 000000000..d26da76f8 --- /dev/null +++ b/device/testing/soc-qcom-msm8974/APKBUILD @@ -0,0 +1,33 @@ +# Maintainer: Barnabas Czeman +pkgname=soc-qcom-msm8974 +pkgdesc="Common package for Qualcomm MSM8974 devices" +pkgver=1 +pkgrel=0 +url="https://postmarketos.org" +license="BSD-3-Clause" +arch="armv7" +options="!check !archcheck !tracedeps pmb:cross-native" +depends="swclock-offset" +subpackages=" + $pkgname-gpu +" + +source=" + adreno-a330-quirks.sh +" + +package() { + mkdir -p $pkgdir +} + +gpu() { + pkgdesc="Various GPU workarounds for Adreno a330" + install_if="$pkgname=$pkgver-r$pkgrel mesa-dri-gallium" + + install -Dm644 "$srcdir"/adreno-a330-quirks.sh \ + "$subpkgdir"/etc/profile.d/adreno-a330-quirks.sh +} + +sha512sums=" +92393cb26b07e86bffed052ed2cb59ebd8096fa91173951b27f01efa92b8c9ef9a1bdc7fa054486a7e08048c4046badd3d295f6312bb209326bbf203c1112d1d adreno-a330-quirks.sh +" diff --git a/device/testing/soc-qcom-msm8974/adreno-a330-quirks.sh b/device/testing/soc-qcom-msm8974/adreno-a330-quirks.sh new file mode 100644 index 000000000..0fd0abfbe --- /dev/null +++ b/device/testing/soc-qcom-msm8974/adreno-a330-quirks.sh @@ -0,0 +1,7 @@ +# Various GPU workarounds for Adreno a330 + +# 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. +# +export GSK_RENDERER=gl