mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
backend/drm: use connector log helpers in atomic backend
This commit is contained in:
parent
a7a230ebef
commit
17dd4c9e9a
1 changed files with 3 additions and 4 deletions
|
@ -32,8 +32,7 @@ static bool atomic_commit(struct atomic *atom,
|
||||||
|
|
||||||
int ret = drmModeAtomicCommit(drm->fd, atom->req, flags, drm);
|
int ret = drmModeAtomicCommit(drm->fd, atom->req, flags, drm);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
wlr_log_errno(WLR_ERROR, "%s: Atomic %s failed (%s)",
|
wlr_drm_conn_log_errno(conn, WLR_ERROR, "Atomic %s failed (%s)",
|
||||||
conn->name,
|
|
||||||
(flags & DRM_MODE_ATOMIC_TEST_ONLY) ? "test" : "commit",
|
(flags & DRM_MODE_ATOMIC_TEST_ONLY) ? "test" : "commit",
|
||||||
(flags & DRM_MODE_ATOMIC_ALLOW_MODESET) ? "modeset" : "pageflip");
|
(flags & DRM_MODE_ATOMIC_ALLOW_MODESET) ? "modeset" : "pageflip");
|
||||||
return false;
|
return false;
|
||||||
|
@ -249,8 +248,8 @@ static bool atomic_crtc_commit(struct wlr_drm_backend *drm,
|
||||||
output->adaptive_sync_status = vrr_enabled ?
|
output->adaptive_sync_status = vrr_enabled ?
|
||||||
WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED :
|
WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED :
|
||||||
WLR_OUTPUT_ADAPTIVE_SYNC_DISABLED;
|
WLR_OUTPUT_ADAPTIVE_SYNC_DISABLED;
|
||||||
wlr_log(WLR_DEBUG, "VRR %s on connector '%s'",
|
wlr_drm_conn_log(conn, WLR_DEBUG, "VRR %s",
|
||||||
vrr_enabled ? "enabled" : "disabled", output->name);
|
vrr_enabled ? "enabled" : "disabled");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
rollback_blob(drm, &crtc->mode_id, mode_id);
|
rollback_blob(drm, &crtc->mode_id, mode_id);
|
||||||
|
|
Loading…
Reference in a new issue