From a0ff90a3298e02c0c5f81288d6ca3c1a723b166e Mon Sep 17 00:00:00 2001 From: Dor Askayo Date: Sat, 28 May 2022 18:17:12 +0300 Subject: [PATCH] kms/page-flip: Add a debug print with page flip event timings Part-of: --- src/backends/native/meta-kms-page-flip.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/backends/native/meta-kms-page-flip.c b/src/backends/native/meta-kms-page-flip.c index 817f4e7c8..c1c29905c 100644 --- a/src/backends/native/meta-kms-page-flip.c +++ b/src/backends/native/meta-kms-page-flip.c @@ -21,6 +21,7 @@ #include "backends/native/meta-kms-page-flip-private.h" +#include "backends/native/meta-kms-crtc.h" #include "backends/native/meta-kms-impl.h" #include "backends/native/meta-kms-private.h" #include "backends/native/meta-kms-update.h" @@ -187,6 +188,12 @@ meta_kms_page_flip_data_set_timings_in_impl (MetaKmsPageFlipData *page_flip_data meta_assert_in_kms_impl (kms); + meta_topic (META_DEBUG_KMS, + "Setting page flip timings for CRTC (%u, %s), sequence: %u, sec: %u, usec: %u", + meta_kms_crtc_get_id (page_flip_data->crtc), + meta_kms_impl_device_get_path (page_flip_data->impl_device), + sequence, sec, usec); + page_flip_data->sequence = sequence; page_flip_data->sec = sec; page_flip_data->usec = usec;