soc-qcom-sdm660: install Adreno GPU quirks script (MR 4897)

Install script into /etc/profile.d with workaround for mesa bugs.
This makes most SDM660 devices usable for general people out of the box.

Signed-off-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
This commit is contained in:
Alexey Minnekhanov 2024-06-08 17:25:00 +03:00 committed by f_
parent 22a9cdf7b2
commit c97eafc5b8
2 changed files with 15 additions and 1 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: Max Buchholz <max.buchholz@gmx.de>
pkgname=soc-qcom-sdm660
pkgdesc="Common package for Qualcomm SDM630/636/660 devices"
pkgver=2
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="BSD-3-Clause"
@ -12,9 +12,12 @@ subpackages="
$pkgname-rproc
$pkgname-nonfree-firmware:nonfree_firmware
"
source="sdm660-adreno-quirks.sh"
package() {
mkdir -p "$pkgdir"
install -Dm755 sdm660-adreno-quirks.sh -t "$pkgdir/etc/profile.d/"
}
rproc() {
@ -42,3 +45,6 @@ nonfree_firmware() {
mkdir "$subpkgdir"
}
sha512sums="
51aa3f86fe461ee520ca181142ac12563897eea711530b9ca8c092f539c303b449e129336375d356dfdcf28333618c03a43bcf346f956e74ff99bee8f0012f3a sdm660-adreno-quirks.sh
"

View file

@ -0,0 +1,8 @@
# Workaround for *some* bugs in mesa for lower-end
# Adreno 5xx GPUs (508/509/512).
# Remove this when this mesa bug is fixed:
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/8442
export FD_MESA_DEBUG=noblit
# A508 owners can try to uncomment this:
# export FD_MESA_DEBUG=noblit,inorder,gmem