[PATCH 4/5] drm/atomic-helper: Consider RGB quantization changes to be mode changes

Yussuf Khalil
2020-04-13T21:51:56Z

Ensure RGB quantization range changes are applied immediately.

Signed-off-by: Yussuf Khalil <dev@pp3345.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