kms: Avoid queuing multiple (un)assignments to the same plane in an update

Just like we already do in `meta_kms_update_assign_plane`.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2620>
This commit is contained in:
Daniel van Vugt 2022-09-08 16:45:29 +08:00 committed by Marge Bot
parent c86d8a23c3
commit 74ce9592b5

View File

@ -316,6 +316,8 @@ meta_kms_update_unassign_plane (MetaKmsUpdate *update,
g_assert (meta_kms_crtc_get_device (crtc) == update->device);
g_assert (meta_kms_plane_get_device (plane) == update->device);
drop_plane_assignment (update, plane, NULL);
plane_assignment = g_new0 (MetaKmsPlaneAssignment, 1);
*plane_assignment = (MetaKmsPlaneAssignment) {
.update = update,