1
0
Fork 0

kms/impl-device: Use KMS_DEADLINE in crtc_page_flip_feedback_flipped

It's useful for this to match the debug topic in
crtc_frame_deadline_dispatch.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3934>
Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
Michel Dänzer 2024-08-12 15:12:09 +02:00 committed by Mingi Sung
parent 0411de33b5
commit b5dffcdc67
Signed by: sungmg
GPG key ID: 41BAFD6FFD8036C5

View file

@ -1201,7 +1201,7 @@ crtc_page_flip_feedback_flipped (MetaKmsCrtc *crtc,
CrtcFrame *crtc_frame = user_data; CrtcFrame *crtc_frame = user_data;
if (crtc_frame->deadline.is_deadline_page_flip && if (crtc_frame->deadline.is_deadline_page_flip &&
meta_is_topic_enabled (META_DEBUG_KMS)) meta_is_topic_enabled (META_DEBUG_KMS_DEADLINE))
{ {
struct timeval page_flip_timeval; struct timeval page_flip_timeval;
int64_t presentation_time_us; int64_t presentation_time_us;
@ -1214,7 +1214,7 @@ crtc_page_flip_feedback_flipped (MetaKmsCrtc *crtc,
if (crtc_frame->deadline.has_expected_presentation_time) if (crtc_frame->deadline.has_expected_presentation_time)
{ {
meta_topic (META_DEBUG_KMS, meta_topic (META_DEBUG_KMS_DEADLINE,
"Deadline page flip presentation time: %" G_GINT64_FORMAT " us, " "Deadline page flip presentation time: %" G_GINT64_FORMAT " us, "
"expected %" G_GINT64_FORMAT " us " "expected %" G_GINT64_FORMAT " us "
"(diff: %" G_GINT64_FORMAT ")", "(diff: %" G_GINT64_FORMAT ")",
@ -1225,7 +1225,7 @@ crtc_page_flip_feedback_flipped (MetaKmsCrtc *crtc,
} }
else else
{ {
meta_topic (META_DEBUG_KMS, meta_topic (META_DEBUG_KMS_DEADLINE,
"Deadline page flip presentation time: %" G_GINT64_FORMAT " us", "Deadline page flip presentation time: %" G_GINT64_FORMAT " us",
presentation_time_us); presentation_time_us);
} }