kms/crtc: Log some CRTC state when updating
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
parent
f0318d8964
commit
5dca49b6d6
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user