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>
This commit is contained in:
Michel Dänzer 2024-08-19 17:55:06 +02:00 committed by Marge Bot
parent a589456209
commit 452e4fbf70
3 changed files with 4 additions and 4 deletions

View file

@ -643,7 +643,7 @@ process_plane_assignment (MetaKmsImplDevice *impl_device,
return FALSE; 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; 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_NONE = 0,
META_KMS_ASSIGN_PLANE_FLAG_FB_UNCHANGED = 1 << 0, META_KMS_ASSIGN_PLANE_FLAG_FB_UNCHANGED = 1 << 0,
META_KMS_ASSIGN_PLANE_FLAG_ALLOW_FAIL = 1 << 1, 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; } MetaKmsAssignPlaneFlag;
struct _MetaKmsPageFlipListenerVtable struct _MetaKmsPageFlipListenerVtable

View file

@ -1539,7 +1539,7 @@ meta_onscreen_native_is_buffer_scanout_compatible (CoglOnscreen *onscreen,
assign_primary_plane (crtc_kms, assign_primary_plane (crtc_kms,
buffer, buffer,
test_update, test_update,
META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT, META_KMS_ASSIGN_PLANE_FLAG_DISABLE_IMPLICIT_SYNC,
&src_rect, &src_rect,
&dst_rect); &dst_rect);
@ -1674,7 +1674,7 @@ meta_onscreen_native_direct_scanout (CoglOnscreen *onscreen,
onscreen_native->view, onscreen_native->view,
onscreen_native->crtc, onscreen_native->crtc,
kms_update, kms_update,
META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT, META_KMS_ASSIGN_PLANE_FLAG_DISABLE_IMPLICIT_SYNC,
NULL, NULL,
0); 0);