aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-09-20 01:06:47 -0600
committerAriadne Conill <ariadne@dereferenced.org>2020-09-20 01:08:04 -0600
commitf9648f23d448f3634c3ee2140995ebc059cf8c74 (patch)
tree34e1644f54bc3d07860b2a05388d36dc5d7235f4
parent8a33d94394665427388335ff11e0763e75169d5f (diff)
downloadaports-f9648f23d448f3634c3ee2140995ebc059cf8c74.tar.gz
aports-f9648f23d448f3634c3ee2140995ebc059cf8c74.tar.bz2
aports-f9648f23d448f3634c3ee2140995ebc059cf8c74.tar.xz
main/mesa: amdgpu aarch64 workaround: only commit small buffers to GTT memory domain
This solves some performance issues when many tabs are open in Firefox or Chromium.
-rw-r--r--main/mesa/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch5
-rw-r--r--main/mesa/APKBUILD4
2 files changed, 5 insertions, 4 deletions
diff --git a/main/mesa/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch b/main/mesa/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch
index 36c84c3f42..ea855f67f9 100644
--- a/main/mesa/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch
+++ b/main/mesa/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch
@@ -22,13 +22,14 @@ diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/rade
index 6b58aebee2d..c9e983367a0 100644
--- a/src/gallium/drivers/radeonsi/si_buffer.c
+++ b/src/gallium/drivers/radeonsi/si_buffer.c
-@@ -151,6 +151,10 @@ void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res,
+@@ -151,6 +151,11 @@ void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res,
*/
if (!sscreen->info.kernel_flushes_hdp_before_ib || !sscreen->info.is_amdgpu)
res->domains = RADEON_DOMAIN_GTT;
+
+#if defined(PIPE_ARCH_AARCH64)
-+ res->domains = RADEON_DOMAIN_GTT;
++ if (size <= 1024 * 512)
++ res->domains = RADEON_DOMAIN_GTT;
+#endif
}
diff --git a/main/mesa/APKBUILD b/main/mesa/APKBUILD
index e180d61812..0e901030c3 100644
--- a/main/mesa/APKBUILD
+++ b/main/mesa/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa
pkgver=20.1.5
-pkgrel=1
+pkgrel=2
pkgdesc="Mesa DRI OpenGL library"
url="https://www.mesa3d.org"
arch="all"
@@ -327,4 +327,4 @@ cdf22d2da3328e116c379264886bd01fd3ad5cc45fe03dc6fd97bdc4794502598ee195c0b9d975fa
cf849044d6cc7d2af4ff015208fb09d70bf9660538699797da21bda2ecb7c1892d312af83d05116afd826708d9caafb1d05a13f09139c558aea6fee931e3eee7 musl-fix-includes.patch
cd3961319079882e692176f654feb21ddfeccafcc7f4ce4f8d21160f36deda768eb3ee7f49dae2e18f0587d321473adc7f127a2d75ae143ec29168bcc0fe12c0 add-use-elf-tls.patch
ede642ae9be64c3fc5fee46e8bf1b2f982191febcfadb235b0261868213c7cca11d38bb53b972f3184a887430f37b9f470a9b12fd03cf54b98315ec75c4d8ed4 disable-rgb10-by-default.patch
-018c1d18e9f9898351ef56a1f785f310b2570ee0d3c3e25c345ced4266e2e37bde7fd4403a4d60db493c3a69d9ad62ddbc325bfe74fd00244ed6ec056b533810 0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch"
+fdbc13888f09d157feae6ce3b8a63cc606d7ed19e364cdb89ccce25a367255b498bbe82862a487c29d8f98d5e31980ef1f0879b06823cedb54801fd54cd461ad 0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch"