aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-10 12:28:53 +0100
committerSimon Ser <contact@emersion.fr>2022-11-14 17:39:39 +0000
commit65836ce357e4140d4e5250228a05ddd96119a883 (patch)
tree3b006845755aa2a68b156cd4bc880ac79f6f605c /backend/drm
parentb3da33116ea9fb3ef948ae72425534b43c217579 (diff)
backend/drm: log modesetting commits
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index f8f58b36..c577bffc 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -581,6 +581,12 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
flags |= DRM_MODE_PAGE_FLIP_EVENT;
}
+ if (pending.modeset) {
+ wlr_drm_conn_log(conn, WLR_INFO, "Modesetting with %dx%d @ %.3f Hz",
+ pending.mode.hdisplay, pending.mode.vdisplay,
+ (float)calculate_refresh_rate(&pending.mode) / 1000);
+ }
+
if (!drm_crtc_commit(conn, &pending, flags, false)) {
return false;
}