1
0
Fork 0

kms/crtc: Log some CRTC state when updating

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2020-12-15 22:45:05 +01:00 committed by Marge Bot
parent f0318d8964
commit 5dca49b6d6
2 changed files with 9 additions and 0 deletions

View file

@ -172,6 +172,13 @@ meta_kms_crtc_read_state (MetaKmsCrtc *crtc,
crtc->current_state.is_active = drm_crtc->mode_valid;
}
meta_topic (META_DEBUG_KMS,
"Read CRTC %u state: active: %d, mode: %s",
crtc->id, crtc->current_state.is_active,
crtc->current_state.is_drm_mode_valid
? crtc->current_state.drm_mode.name
: "(nil)");
read_gamma_state (crtc, impl_device, drm_crtc);
}

View file

@ -577,6 +577,8 @@ meta_kms_impl_device_update_states (MetaKmsImplDevice *impl_device)
meta_assert_in_kms_impl (meta_kms_impl_get_kms (priv->impl));
meta_topic (META_DEBUG_KMS, "Updating device state for %s", priv->path);
drm_resources = drmModeGetResources (priv->fd);
if (!drm_resources)
{