From d38efd838bba2de1bb9887db0f4463275f3e34d6 Mon Sep 17 00:00:00 2001 From: Robert Eckelmann Date: Mon, 5 May 2025 10:25:44 +0900 Subject: [PATCH] main/postmarketos-base-ui: add workaround for Mali GPUs w/ mesa 25 This adds 'PAN_MESA_DEBUG=noafbc' to the environment for systems with Mediatek SoCs closes #3692 Signed-off-by: Robert Eckelmann Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6470 --- main/postmarketos-base-ui/APKBUILD | 6 ++++-- .../rootfs-etc-profile.d-99-mesa-mali-workaround.sh | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 main/postmarketos-base-ui/rootfs-etc-profile.d-99-mesa-mali-workaround.sh diff --git a/main/postmarketos-base-ui/APKBUILD b/main/postmarketos-base-ui/APKBUILD index 011ce122e..096bc553f 100644 --- a/main/postmarketos-base-ui/APKBUILD +++ b/main/postmarketos-base-ui/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Clayton Craft pkgname=postmarketos-base-ui -pkgver=36 -pkgrel=4 +pkgver=37 +pkgrel=0 pkgdesc="Meta package for minimal postmarketOS UI base" url="https://postmarketos.org" arch="noarch" @@ -89,6 +89,7 @@ _source755=" etc/tinydm.d/env-wayland.d/50-sdl-wayland.sh usr/lib/NetworkManager/dispatcher.d/50-dns-filter.sh usr/lib/NetworkManager/dispatcher.d/50-tethering.sh + etc/profile.d/99-mesa-mali-workaround.sh etc/profile.d/99-flatpak-qcom-workaround.sh etc/profile.d/qt-mobile-controls.sh etc/profile.d/qt-wayland.sh @@ -329,6 +330,7 @@ d4b4c4fed2dee7266f6a87ae266691377593014943e2953e4cd87a59f3110f25bfb5f3f866cc8435 ecaa57d033a119a53a6574c27636b7c89d659d75ea48a973a6a4ff6f90e5d07202529fd489bfc9dfc7430f5b60f40612f6d5c06f7fab47e681b0a3112a874058 rootfs-etc-tinydm.d-env-wayland.d-50-sdl-wayland.sh 36e0037f6d26a99db7b47831263be610d594e2c1c4a8ee7f6fc8b41092f501d3064d80b80ddf6a82b616bd2da09aa4da896074ad9f7fd53aba7e397da4190d22 rootfs-usr-lib-NetworkManager-dispatcher.d-50-dns-filter.sh 802c8ca1603c6bc536f83ea7158f9fb9cf0dd94c59cadab9d059c738ca6bc5c1deb1c982996efd3b1909d01592e5a3e32f005c043e203a83361d3c64994b713b rootfs-usr-lib-NetworkManager-dispatcher.d-50-tethering.sh +5d995329d329072577a3e8a75bd8b36660e68cad8972c0281ce21f093920619d77cbfee28510b77037b5586529da3653b9fcef13bc10a3d2ff964699face0183 rootfs-etc-profile.d-99-mesa-mali-workaround.sh 896242cbf0260c96fe3d0efd717352ea51458eab83a2414e735b8443eabbc0a98980b6b99976924f0fab4cc67d5c095fc760904c7111a8dd8ae37327983fab02 rootfs-etc-profile.d-99-flatpak-qcom-workaround.sh bf8db527c49fa724e640a90269ba2648a2555f5867b2adbfbd88d1f685261f757339757c09ee08f590c76de4bd3d0c73a47dea9bd340644dd4707e76152cefd1 rootfs-etc-profile.d-qt-mobile-controls.sh 6e193eca3961a78d47b4656892eae34d019d9317a255a201f5ea61e3300caff04c526a27cd98d0edc072b36e3eaf3a1768f4cd27c5e2be8b19c167d535c820a6 rootfs-etc-profile.d-qt-wayland.sh diff --git a/main/postmarketos-base-ui/rootfs-etc-profile.d-99-mesa-mali-workaround.sh b/main/postmarketos-base-ui/rootfs-etc-profile.d-99-mesa-mali-workaround.sh new file mode 100644 index 000000000..375a5c170 --- /dev/null +++ b/main/postmarketos-base-ui/rootfs-etc-profile.d-99-mesa-mali-workaround.sh @@ -0,0 +1,4 @@ +#!/bin/sh +if grep -q mediatek, /sys/firmware/devicetree/base/compatible 2>/dev/null; then + export PAN_MESA_DEBUG=noafbc +fi