From a6737a46c778fc8534ee9c32efc77f215b7946c3 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Tue, 13 Aug 2024 13:54:49 +0800 Subject: [PATCH] kms/update: Don't count trivial custom page flips as empty updates This includes most frames when using EGL_DEVICE. While it would be nice to skip all update processing in this case, we can't go quite that far because EGL_DEVICE is still waiting on page flip callbacks. Fixes: 27ed069766 ("kms/impl-device: Add deadline based KMS commit scheduling") Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3196 Part-of: (cherry picked from commit 4c91616ff2982e91cee139b560165cb2d12bf365) --- src/backends/native/meta-kms-update.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/native/meta-kms-update.c b/src/backends/native/meta-kms-update.c index b8c4137f9..fc605bec1 100644 --- a/src/backends/native/meta-kms-update.c +++ b/src/backends/native/meta-kms-update.c @@ -1207,5 +1207,6 @@ meta_kms_update_is_empty (MetaKmsUpdate *update) !update->plane_assignments && !update->connector_updates && !update->crtc_updates && - !update->crtc_color_updates); + !update->crtc_color_updates && + !update->custom_page_flip); }