From 34757cdad6a9d2aacf431f3dabe5356f9a79db9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 19 Aug 2024 17:55:06 +0200 Subject: [PATCH] kms/plane: Rename META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT To META_KMS_ASSIGN_PLANE_FLAG_DISABLE_IMPLICIT_SYNC. This describes the effect of the flag, instead of the circumstances it's currently used for. Part-of: Signed-off-by: Mingi Sung --- src/backends/native/meta-kms-impl-device-atomic.c | 2 +- src/backends/native/meta-kms-update.h | 2 +- src/backends/native/meta-onscreen-native.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backends/native/meta-kms-impl-device-atomic.c b/src/backends/native/meta-kms-impl-device-atomic.c index 7812ec042..488d24ac5 100644 --- a/src/backends/native/meta-kms-impl-device-atomic.c +++ b/src/backends/native/meta-kms-impl-device-atomic.c @@ -643,7 +643,7 @@ process_plane_assignment (MetaKmsImplDevice *impl_device, return FALSE; } - if (plane_assignment->flags & META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT) + if (plane_assignment->flags & META_KMS_ASSIGN_PLANE_FLAG_DISABLE_IMPLICIT_SYNC) { int signaled_sync_file; diff --git a/src/backends/native/meta-kms-update.h b/src/backends/native/meta-kms-update.h index 1951c80f6..eb5318a9c 100644 --- a/src/backends/native/meta-kms-update.h +++ b/src/backends/native/meta-kms-update.h @@ -39,7 +39,7 @@ typedef enum _MetaKmsAssignPlaneFlag META_KMS_ASSIGN_PLANE_FLAG_NONE = 0, META_KMS_ASSIGN_PLANE_FLAG_FB_UNCHANGED = 1 << 0, META_KMS_ASSIGN_PLANE_FLAG_ALLOW_FAIL = 1 << 1, - META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT = 1 << 2, + META_KMS_ASSIGN_PLANE_FLAG_DISABLE_IMPLICIT_SYNC = 1 << 2, } MetaKmsAssignPlaneFlag; struct _MetaKmsPageFlipListenerVtable diff --git a/src/backends/native/meta-onscreen-native.c b/src/backends/native/meta-onscreen-native.c index b790c1e5c..dbff8f85f 100644 --- a/src/backends/native/meta-onscreen-native.c +++ b/src/backends/native/meta-onscreen-native.c @@ -1571,7 +1571,7 @@ meta_onscreen_native_is_buffer_scanout_compatible (CoglOnscreen *onscreen, assign_primary_plane (crtc_kms, buffer, test_update, - META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT, + META_KMS_ASSIGN_PLANE_FLAG_DISABLE_IMPLICIT_SYNC, &src_rect, &dst_rect); @@ -1701,7 +1701,7 @@ meta_onscreen_native_direct_scanout (CoglOnscreen *onscreen, onscreen_native->view, onscreen_native->crtc, kms_update, - META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT, + META_KMS_ASSIGN_PLANE_FLAG_DISABLE_IMPLICIT_SYNC, NULL, 0);