aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorvanfanel <redwindwanderer@gmail.com>2022-09-11 18:40:54 +0200
committerSimon Ser <contact@emersion.fr>2022-09-16 14:15:58 +0000
commit4ffc97d134e4a8090298c79339665bed92334f82 (patch)
treef9f24e5fb0fe400e7baf19135b9f122a7b1a8582 /backend
parent8795dde94eebb642e180de2a39ca19e4eee88ac1 (diff)
Only set max_bpc when full modesetting is being done.
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/atomic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c
index 05d01125..da1119b2 100644
--- a/backend/drm/atomic.c
+++ b/backend/drm/atomic.c
@@ -286,7 +286,7 @@ static bool atomic_crtc_commit(struct wlr_drm_connector *conn,
atomic_add(&atom, conn->id, conn->props.content_type,
DRM_MODE_CONTENT_TYPE_GRAPHICS);
}
- if (active && conn->props.max_bpc != 0 && conn->max_bpc > 0) {
+ if (modeset && active && conn->props.max_bpc != 0 && conn->max_bpc > 0) {
atomic_add(&atom, conn->id, conn->props.max_bpc, conn->max_bpc);
}
atomic_add(&atom, crtc->id, crtc->props.mode_id, mode_id);