Revert "kms/impl-device: Always catch pending KMS update in _schedule_process"

Revert this due to the KMS thread not being supposed to handle
multiple updates per cycle.

This reverts commit d6005b539ca42905dfaf1c3854540a559332b78e.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3977
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4334>
This commit is contained in:
Jonas Ådahl 2025-03-21 17:04:24 +01:00 committed by Bruce Leidl
parent a68a06cfc3
commit 51bc12f7ec

View File

@ -2081,15 +2081,6 @@ meta_kms_impl_device_schedule_process (MetaKmsImplDevice *impl_device,
if (ensure_deadline_timer_armed (impl_device, crtc_frame)) if (ensure_deadline_timer_armed (impl_device, crtc_frame))
return; return;
}
else if (crtc_frame->pending_update)
{
MetaKmsImplDevicePrivate *priv =
meta_kms_impl_device_get_instance_private (impl_device);
g_warning_once ("crtc_frame->pending_update=%p, deadline_timer_state=%d",
crtc_frame->pending_update, priv->deadline_timer_state);
}
if (crtc_frame->pending_update) if (crtc_frame->pending_update)
{ {
@ -2098,6 +2089,16 @@ meta_kms_impl_device_schedule_process (MetaKmsImplDevice *impl_device,
crtc_frame->pending_update, crtc_frame->pending_update,
META_KMS_UPDATE_FLAG_NONE); META_KMS_UPDATE_FLAG_NONE);
} }
}
if (crtc_frame->pending_update)
{
MetaKmsImplDevicePrivate *priv =
meta_kms_impl_device_get_instance_private (impl_device);
g_warning_once ("crtc_frame->pending_update=%p, deadline_timer_state=%d",
crtc_frame->pending_update, priv->deadline_timer_state);
}
meta_kms_device_set_needs_flush (meta_kms_crtc_get_device (crtc), crtc); meta_kms_device_set_needs_flush (meta_kms_crtc_get_device (crtc), crtc);
} }