public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mutter] f44: Add patch for a crash on systems with multiple GPU-s
@ 2026-07-08 6:11 Milan Crha
0 siblings, 0 replies; only message in thread
From: Milan Crha @ 2026-07-08 6:11 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mutter
Branch : f44
Commit : dc36d22decfffa59c3bff96aeae0408abba883e7
Author : Milan Crha <mcrha@redhat.com>
Date : 2026-07-08T08:09:37+02:00
Stats : +44/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/mutter/c/dc36d22decfffa59c3bff96aeae0408abba883e7?branch=f44
Log:
Add patch for a crash on systems with multiple GPU-s
---
diff --git a/0001-kms_impl-device__Handle-NULL-crtc_frames-in-_discard_pending_page_flips.patch b/0001-kms_impl-device__Handle-NULL-crtc_frames-in-_discard_pending_page_flips.patch
new file mode 100644
index 0000000..1d8e29e
--- /dev/null
+++ b/0001-kms_impl-device__Handle-NULL-crtc_frames-in-_discard_pending_page_flips.patch
@@ -0,0 +1,42 @@
+From 5d187100e2e146511cc19269d2f1c650cc3125ab Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <mdaenzer@redhat.com>
+Date: Mon, 6 Jul 2026 16:44:29 +0200
+Subject: [PATCH] kms/impl-device: Handle NULL crtc_frames in
+ _discard_pending_page_flips
+
+Closes: https://gitlab.gnome.org/GNOME/mutter/-/work_items/4848
+Fixes: 14b3d57b7d92 ("kms-impl-device: Discard pending update when discarding pending flips")
+Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/5163>
+---
+ src/backends/native/meta-kms-impl-device.c | 14 +++++++++-----
+ 1 file changed, 9 insertions(+), 5 deletions(-)
+
+diff --git a/src/backends/native/meta-kms-impl-device.c b/src/backends/native/meta-kms-impl-device.c
+index 835bbc25e46..3f28fd4d3ae 100644
+--- a/src/backends/native/meta-kms-impl-device.c
++++ b/src/backends/native/meta-kms-impl-device.c
+@@ -2457,12 +2457,16 @@ meta_kms_impl_device_discard_pending_page_flips (MetaKmsImplDevice *impl_device)
+ MetaKmsImplDeviceClass *klass = META_KMS_IMPL_DEVICE_GET_CLASS (impl_device);
+ MetaKmsImplDevicePrivate *priv =
+ meta_kms_impl_device_get_instance_private (impl_device);
+- GHashTableIter iter;
+- CrtcFrame *crtc_frame;
+
+- g_hash_table_iter_init (&iter, priv->crtc_frames);
+- while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &crtc_frame))
+- discard_update (impl_device, &crtc_frame->pending_update);
++ if (priv->crtc_frames)
++ {
++ GHashTableIter iter;
++ CrtcFrame *crtc_frame;
++
++ g_hash_table_iter_init (&iter, priv->crtc_frames);
++ while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &crtc_frame))
++ discard_update (impl_device, &crtc_frame->pending_update);
++ }
+
+ klass->discard_pending_page_flips (impl_device);
+ }
+--
+GitLab
+
diff --git a/mutter.spec b/mutter.spec
index ae80fbc..f4edd48 100644
--- a/mutter.spec
+++ b/mutter.spec
@@ -27,6 +27,8 @@ License: GPL-2.0-or-later
URL: http://www.gnome.org
Source0: http://download.gnome.org/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz
+Patch: 0001-kms_impl-device__Handle-NULL-crtc_frames-in-_discard_pending_page_flips.patch
+
BuildRequires: cvt
BuildRequires: desktop-file-utils
BuildRequires: mesa-libEGL-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-08 6:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-08 6:11 [rpms/mutter] f44: Add patch for a crash on systems with multiple GPU-s Milan Crha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox