Message ID | 20200413214024.46500-5-dev@pp3345.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Improving the situation regarding RGB quantization ranges | expand |
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)
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(+)