[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200413214024.46500-5-dev@pp3345.net>
Date: Mon, 13 Apr 2020 23:40:25 +0200
From: Yussuf Khalil <dev@...345.net>
To: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Cc: Yussuf Khalil <dev@...345.net>
Subject: [PATCH 4/5] drm/atomic-helper: Consider RGB quantization changes to be mode changes
Ensure RGB quantization range changes are applied immediately.
Signed-off-by: Yussuf Khalil <dev@...345.net>
---
drivers/gpu/drm/drm_atomic_helper.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c
index 85d163f16801..b74e90a2b214 100644
--- a/drivers/gpu/drm/drm_atomic_helper.c
+++ b/drivers/gpu/drm/drm_atomic_helper.c
@@ -686,6 +686,12 @@ drm_atomic_helper_check_modeset(struct drm_device *dev,
if (old_connector_state->max_requested_bpc !=
new_connector_state->max_requested_bpc)
new_crtc_state->connectors_changed = true;
+
+ if (drm_connector_state_select_rgb_quantization_range(
+ old_connector_state, &new_crtc_state->mode) !=
+ drm_connector_state_select_rgb_quantization_range(
+ new_connector_state, &new_crtc_state->mode))
+ new_crtc_state->mode_changed = true;
}
if (funcs->atomic_check)
--
2.26.0
Powered by blists - more mailing lists