Timo Aaltonen pushed to branch ubuntu-resolute at X Strike Force / lib / mesa
Commits: 9d500a79 by Timo Aaltonen at 2026-07-08T10:15:31+03:00 d/p/egl-gbm-Ignore-current-front-buffer-in-get_back_bo.patch: Yet another patch for mutter. (LP: #2152207) - - - - - c0452746 by Timo Aaltonen at 2026-07-08T10:16:05+03:00 releasing package mesa version 26.0.8-1ubuntu0.3 - - - - - 3 changed files: - debian/changelog - + debian/patches/egl-gbm-Ignore-current-front-buffer-in-get_back_bo.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +mesa (26.0.8-1ubuntu0.3) resolute; urgency=medium + + * d/p/egl-gbm-Ignore-current-front-buffer-in-get_back_bo.patch: Yet + another patch for mutter. (LP: #2152207) + + -- Timo Aaltonen <[email protected]> Wed, 08 Jul 2026 10:15:38 +0300 + mesa (26.0.8-1ubuntu0.2) resolute; urgency=medium * patches/egl-gbm-Ignore-buffers-with-no-BO-for-destroying-exc.patch: ===================================== debian/patches/egl-gbm-Ignore-current-front-buffer-in-get_back_bo.patch ===================================== @@ -0,0 +1,33 @@ +From ab8e57cf3141ca7af0294c7f56aec85298e8bebf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <[email protected]> +Date: Tue, 9 Jun 2026 15:47:28 +0200 +Subject: [PATCH] egl/gbm: Ignore current front buffer in get_back_bo + +Even if the front buffer isn't locked yet, it will normally get locked, +so we can't reuse it as a back buffer. + +Pointed out by Daniel Stone. + +Fixes: 4a976b60b113 ("egl_dri2: use gbm_surface as the native window type in drm platform") +Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42111> +--- + src/egl/drivers/dri2/platform_drm.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c +index f6fe503290d..dc73a760e99 100644 +--- a/src/egl/drivers/dri2/platform_drm.c ++++ b/src/egl/drivers/dri2/platform_drm.c +@@ -251,7 +251,8 @@ get_back_bo(struct dri2_egl_surface *dri2_surf) + + if (dri2_surf->back == NULL) { + for (unsigned i = 0; i < ARRAY_SIZE(dri2_surf->color_buffers); i++) { +- if (!dri2_surf->color_buffers[i].locked) { ++ if (!dri2_surf->color_buffers[i].locked && ++ dri2_surf->current != &dri2_surf->color_buffers[i]) { + int age = dri2_surf->color_buffers[i].age; + + if (dri2_surf->color_buffers[i].bo && +-- +2.53.0 + ===================================== debian/patches/series ===================================== @@ -2,3 +2,4 @@ path_max.diff src_glx_dri_common.h.diff egl-gbm-Do-not-destroy-BO-of-current-front-buffer.patch egl-gbm-Ignore-buffers-with-no-BO-for-destroying-exc.patch +egl-gbm-Ignore-current-front-buffer-in-get_back_bo.patch View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/d369defe1cd13f507205141b411ede8b7f55aaa9...c04527468e8e33db957f577c4f97156f23ce27a2 -- View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/d369defe1cd13f507205141b411ede8b7f55aaa9...c04527468e8e33db957f577c4f97156f23ce27a2 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

