drm/i915: Preserve crtc_state->inherited during state clearing
authorjsg <jsg@openbsd.org>
Fri, 31 Mar 2023 02:02:47 +0000 (02:02 +0000)
committerjsg <jsg@openbsd.org>
Fri, 31 Mar 2023 02:02:47 +0000 (02:02 +0000)
From Ville Syrjala
220da3bf1fc335ae25b181d6bedcfc63efef6ccc in linux-6.1.y/6.1.22
3a84f2c6c9558c554a90ec26ad25df92fc5e05b7 in mainline linux

sys/dev/pci/drm/i915/display/intel_display.c

index 7acf769..8901781 100644 (file)
@@ -5186,6 +5186,7 @@ intel_crtc_prepare_cleared_state(struct intel_atomic_state *state,
         * only fields that are know to not cause problems are preserved. */
 
        saved_state->uapi = crtc_state->uapi;
+       saved_state->inherited = crtc_state->inherited;
        saved_state->scaler_state = crtc_state->scaler_state;
        saved_state->shared_dpll = crtc_state->shared_dpll;
        saved_state->dpll_hw_state = crtc_state->dpll_hw_state;