From: Ville Syrjälä Date: Thu, 3 Feb 2022 18:38:14 +0000 (+0200) Subject: drm/i915: Flag crtc scaling_filter changes as modeset X-Git-Tag: v6.1-rc5~176^2~17^2~558 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a7a8d93db9b8c7ee9cba983fc6aa8576da237ea;p=platform%2Fkernel%2Flinux-starfive.git drm/i915: Flag crtc scaling_filter changes as modeset The core doesn't flag scaling_filter prop changes as needing a modeset. That doesn't work for us since we only reprogram the pipe scaler during full modesets and fastsets. So we need to flag the prop change as a modeset ourselves. Assuming nothing else has changed the operation will get promoted (demoted?) to a fastset later. Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20220203183823.22890-2-ville.syrjala@linux.intel.com Reviewed-by: Manasi Navare --- diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index 0443ef3..897f45e 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -7632,6 +7632,10 @@ static int intel_atomic_check(struct drm_device *dev, new_crtc_state, i) { if (new_crtc_state->inherited != old_crtc_state->inherited) new_crtc_state->uapi.mode_changed = true; + + if (new_crtc_state->uapi.scaling_filter != + old_crtc_state->uapi.scaling_filter) + new_crtc_state->uapi.mode_changed = true; } intel_vrr_check_modeset(state);