kms: Mark mode set updates as such

This is currently unused, but will be later used to distinguish betwen
per frame/CRTC updates and device wide ones.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2777>
This commit is contained in:
Jonas Ådahl
2022-12-21 18:37:18 +01:00
parent a7954f4a75
commit 587da92b0a
3 changed files with 7 additions and 5 deletions

View File

@ -80,6 +80,7 @@ typedef enum _MetaKmsUpdateFlag
{
META_KMS_UPDATE_FLAG_NONE = 0,
META_KMS_UPDATE_FLAG_TEST_ONLY = 1 << 0,
META_KMS_UPDATE_FLAG_MODE_SET = 1 << 1,
} MetaKmsUpdateFlag;
typedef enum _MetaKmsPlaneType MetaKmsPlaneType;

View File

@ -873,8 +873,9 @@ post_mode_set_updates (MetaRendererNative *renderer_native)
NULL,
NULL);
feedback = meta_kms_device_process_update_sync (kms_device, kms_update,
META_KMS_UPDATE_FLAG_NONE);
feedback =
meta_kms_device_process_update_sync (kms_device, kms_update,
META_KMS_UPDATE_FLAG_MODE_SET);
}
}