From cf34e46f757d2756131d09f8ba96c83677297a29 Mon Sep 17 00:00:00 2001 From: whitebelyash <66699673+whitebelyash@users.noreply.github.com> Date: Mon, 16 Mar 2026 00:52:52 +0400 Subject: [PATCH 1/4] Feat[builder]: use mesa-tu8 patchset --- turnip_builder.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/turnip_builder.sh b/turnip_builder.sh index 2f2728db..cb9c0b2e 100644 --- a/turnip_builder.sh +++ b/turnip_builder.sh @@ -58,6 +58,14 @@ prepare_workdir(){ echo "Exracting mesa source ..." $'\n' unzip mesa-main.zip &> /dev/null cd mesa-$srcfolder + echo "Downloading patchset ..." $'\n' + curl https://github.com/whitebelyash/mesa-tu8/releases/download/patchset-head-v2/tu8_kgsl_26.patch --output a8xx.patch &> /dev/null + echo "Applying patchset ..." $'\n' + if ! git apply --check a8xx.patch; then + echo "Failed to apply the patchset!" + exit 1 + fi + git apply a8xx.patch } From 326459c825c987637b794d758d2031f05a2891ea Mon Sep 17 00:00:00 2001 From: whitebelyash <66699673+whitebelyash@users.noreply.github.com> Date: Mon, 16 Mar 2026 00:56:57 +0400 Subject: [PATCH 2/4] Fix[builder]: allow curl redirections --- turnip_builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turnip_builder.sh b/turnip_builder.sh index cb9c0b2e..9c9f2ca1 100644 --- a/turnip_builder.sh +++ b/turnip_builder.sh @@ -59,7 +59,7 @@ prepare_workdir(){ unzip mesa-main.zip &> /dev/null cd mesa-$srcfolder echo "Downloading patchset ..." $'\n' - curl https://github.com/whitebelyash/mesa-tu8/releases/download/patchset-head-v2/tu8_kgsl_26.patch --output a8xx.patch &> /dev/null + curl -L https://github.com/whitebelyash/mesa-tu8/releases/download/patchset-head-v2/tu8_kgsl_26.patch --output a8xx.patch &> /dev/null echo "Applying patchset ..." $'\n' if ! git apply --check a8xx.patch; then echo "Failed to apply the patchset!" From dc744ccb9b0051032e6612139a678277d583c3f6 Mon Sep 17 00:00:00 2001 From: whitebelyash <66699673+whitebelyash@users.noreply.github.com> Date: Tue, 24 Mar 2026 01:43:46 +0400 Subject: [PATCH 3/4] Fix[builder]: use patch instead of git apply --- turnip_builder.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/turnip_builder.sh b/turnip_builder.sh index 9c9f2ca1..7283c95b 100644 --- a/turnip_builder.sh +++ b/turnip_builder.sh @@ -61,11 +61,7 @@ prepare_workdir(){ echo "Downloading patchset ..." $'\n' curl -L https://github.com/whitebelyash/mesa-tu8/releases/download/patchset-head-v2/tu8_kgsl_26.patch --output a8xx.patch &> /dev/null echo "Applying patchset ..." $'\n' - if ! git apply --check a8xx.patch; then - echo "Failed to apply the patchset!" - exit 1 - fi - git apply a8xx.patch + patch -p1 < a8xx.patch } From 1fe0d9fc6533dfb675fa817bc13ba13a75592cff Mon Sep 17 00:00:00 2001 From: whitebelyash Date: Tue, 24 Mar 2026 01:54:51 +0400 Subject: [PATCH 4/4] Feat[builder]: disable LTO Mesa does not recommend using LTO --- turnip_builder.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/turnip_builder.sh b/turnip_builder.sh index 7283c95b..9d570d44 100644 --- a/turnip_builder.sh +++ b/turnip_builder.sh @@ -117,8 +117,6 @@ EOF --native-file "native.txt" \ --prefix /tmp/turnip \ -Dbuildtype=release \ - -Db_lto=true \ - -Db_lto_mode=thin \ -Dstrip=true \ -Dplatforms=android \ -Dvideo-codecs= \