Timo Aaltonen pushed to branch debian-unstable at X Strike Force / lib / mesa


Commits:
68e4e580 by Daniel van Vugt at 2026-10-01T14:57:43+08:00
Add lp2143073.patch (LP: #2143073)

- - - - -


2 changed files:

- + debian/patches/lp2143073.patch
- debian/patches/series


Changes:

=====================================
debian/patches/lp2143073.patch
=====================================
@@ -0,0 +1,33 @@
+From: Daniel van Vugt <[email protected]>
+Date: Tue, 29 Sep 2026 19:01:17 +0800
+Subject: gallium: Set a default max_texture_upload_memory_budget
+
+64MB seems like a sane amount of user memory to spend before upload
+throttling kicks in. That's also the maximum amount that drivers seem to be
+choosing, for those drivers that do already set
+`max_texture_upload_memory_budget`.
+
+Previously it had the default value of zero (including for Intel iris), so
+`util_throttle_memory_usage` was a no-op and allowed shared memory to grow
+without bounds in pathological `glTexSubImage2D` cases.
+
+Bug: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/16408
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/2143073
+Origin: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44789
+---
+ src/gallium/auxiliary/util/u_screen.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/gallium/auxiliary/util/u_screen.c 
b/src/gallium/auxiliary/util/u_screen.c
+index da9cdfc..6c8a698 100644
+--- a/src/gallium/auxiliary/util/u_screen.c
++++ b/src/gallium/auxiliary/util/u_screen.c
+@@ -130,6 +130,8 @@ u_init_pipe_screen_caps(struct pipe_screen *pscreen, int 
accel)
+ 
+    caps->max_varyings = 8;
+ 
++   caps->max_texture_upload_memory_budget = 64 * 1024 * 1024;
++
+    caps->throttle = true;
+ 
+ #if defined(HAVE_LIBDRM) && (DETECT_OS_LINUX || DETECT_OS_BSD || 
DETECT_OS_MANAGARM)


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 path_max.diff
 src_glx_dri_common.h.diff
+lp2143073.patch



View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/commit/68e4e58083d16c4785ad84aababddda126b4ecbd

-- 
View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/commit/68e4e58083d16c4785ad84aababddda126b4ecbd
You're receiving this email because of your account on salsa.debian.org. Manage 
all notifications: https://salsa.debian.org/-/profile/notifications | Help: 
https://salsa.debian.org/help


Reply via email to