kms/impl-device: Simplify meta_kms_impl_device_schedule_process logic
There's no need for a label. No functional change intended. v2: * Keep early returns separate. (Jonas Ådahl) Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3964>
This commit is contained in:
parent
0d7752a07d
commit
315dfaa5d4
@ -2024,23 +2024,21 @@ meta_kms_impl_device_schedule_process (MetaKmsImplDevice *impl_device,
|
|||||||
MetaKmsCrtc *crtc)
|
MetaKmsCrtc *crtc)
|
||||||
{
|
{
|
||||||
CrtcFrame *crtc_frame;
|
CrtcFrame *crtc_frame;
|
||||||
g_autoptr (GError) error = NULL;
|
|
||||||
|
|
||||||
crtc_frame = ensure_crtc_frame (impl_device, crtc);
|
crtc_frame = ensure_crtc_frame (impl_device, crtc);
|
||||||
|
|
||||||
if (crtc_frame->await_flush)
|
if (crtc_frame->await_flush)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!is_using_deadline_timer (impl_device))
|
if (is_using_deadline_timer (impl_device))
|
||||||
goto needs_flush;
|
{
|
||||||
|
if (crtc_frame->pending_page_flip)
|
||||||
|
return;
|
||||||
|
|
||||||
if (crtc_frame->pending_page_flip)
|
if (ensure_deadline_timer_armed (impl_device, crtc_frame))
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (ensure_deadline_timer_armed (impl_device, crtc_frame))
|
|
||||||
return;
|
|
||||||
|
|
||||||
needs_flush:
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user