mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
kms/plane: Add META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT flag
It marks plane assignments for direct scanout. Preparation for following commits, no functional change intended. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3389>
This commit is contained in:
parent
0f52c2a6da
commit
3ad32ee0bc
@ -39,6 +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,
|
||||
} MetaKmsAssignPlaneFlag;
|
||||
|
||||
enum _MetaKmsPageFlipListenerFlag
|
||||
|
@ -1277,7 +1277,7 @@ meta_onscreen_native_is_buffer_scanout_compatible (CoglOnscreen *onscreen,
|
||||
|
||||
test_update = meta_kms_update_new (kms_device);
|
||||
meta_crtc_kms_assign_primary_plane (crtc_kms, fb, test_update,
|
||||
META_KMS_ASSIGN_PLANE_FLAG_NONE);
|
||||
META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT);
|
||||
|
||||
meta_topic (META_DEBUG_KMS,
|
||||
"Posting direct scanout test update for CRTC %u (%s) synchronously",
|
||||
@ -1399,7 +1399,7 @@ meta_onscreen_native_direct_scanout (CoglOnscreen *onscreen,
|
||||
onscreen_native->view,
|
||||
onscreen_native->crtc,
|
||||
kms_update,
|
||||
META_KMS_ASSIGN_PLANE_FLAG_NONE,
|
||||
META_KMS_ASSIGN_PLANE_FLAG_DIRECT_SCANOUT,
|
||||
NULL,
|
||||
0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user