From b2761819e4aebe048cdacc7327272a6dc02482b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 2 Sep 2024 16:44:51 +0200 Subject: [PATCH] kms/impl-device/atomic: Leave implicit sync enabled for modeset updates Preparation for next commit, which may merge multiple KMS updates with sync_fds for modesets. Waiting for all sync_fds to signal before processing the merged KMS update would be rather involved, for now just leave implicit sync enabled for it. We're still relying on implicit sync for modesets in general anyway. Part-of: --- src/backends/native/meta-kms-impl-device-atomic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/native/meta-kms-impl-device-atomic.c b/src/backends/native/meta-kms-impl-device-atomic.c index b748ca338..e768fde34 100644 --- a/src/backends/native/meta-kms-impl-device-atomic.c +++ b/src/backends/native/meta-kms-impl-device-atomic.c @@ -643,7 +643,8 @@ process_plane_assignment (MetaKmsImplDevice *impl_device, return FALSE; } - if (plane_assignment->flags & META_KMS_ASSIGN_PLANE_FLAG_DISABLE_IMPLICIT_SYNC) + if (plane_assignment->flags & META_KMS_ASSIGN_PLANE_FLAG_DISABLE_IMPLICIT_SYNC && + !meta_kms_update_get_mode_sets (update)) { int signaled_sync_file;