1
0
Fork 0

kms/update: Don't count trivial custom page flips as empty updates

This includes most frames when using EGL_DEVICE.

While it would be nice to skip all update processing in this case,
we can't go quite that far because EGL_DEVICE is still waiting on
page flip callbacks.

Fixes: 27ed069766 ("kms/impl-device: Add deadline based KMS commit scheduling")
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3196
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3939>
This commit is contained in:
Daniel van Vugt 2024-08-13 13:54:49 +08:00
parent cfb2100d40
commit 4c91616ff2

View file

@ -1207,5 +1207,6 @@ meta_kms_update_is_empty (MetaKmsUpdate *update)
!update->plane_assignments &&
!update->connector_updates &&
!update->crtc_updates &&
!update->crtc_color_updates);
!update->crtc_color_updates &&
!update->custom_page_flip);
}