1
0
Fork 0

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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3958>
Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
Michel Dänzer 2024-08-19 17:55:06 +02:00 committed by Mingi Sung
parent a364e785f9
commit 011b6f7c96
Signed by: sungmg
GPG key ID: 41BAFD6FFD8036C5
3 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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

View file

@ -1539,7 +1539,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);
@ -1674,7 +1674,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);