meta/kms-impl: Emit trace message on page flips

It's sometimes useful to see the earliest point when the compositor
became aware of a page flip.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3417>
This commit is contained in:
Ivan Molodetskikh
2023-10-09 11:10:05 +04:00
committed by Marge Bot
parent 1f22b3a2e2
commit 5cbcf1c94f
2 changed files with 11 additions and 2 deletions

View File

@ -840,6 +840,10 @@ atomic_page_flip_handler (int fd,
NULL,
(gpointer *) &page_flip_data);
COGL_TRACE_MESSAGE ("atomic_page_flip_handler()",
"[atomic] Page flip callback for CRTC (%u, %s)",
crtc_id, meta_kms_impl_device_get_path (impl_device));
meta_topic (META_DEBUG_KMS,
"[atomic] Page flip callback for CRTC (%u, %s), data: %p",
crtc_id, meta_kms_impl_device_get_path (impl_device),