Commit 7b65b24a authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Update bw_state->active_pipes during readout



Update bw_state->active_pipes during readout.

This was completely missing from the current readout code.

Reviewed-by: default avatarVinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250306163420.3961-12-ville.syrjala@linux.intel.com
parent ad2d834f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1431,9 +1431,15 @@ void intel_bw_update_hw_state(struct intel_display *display)
	if (DISPLAY_VER(display) < 9)
		return;

	bw_state->active_pipes = 0;

	for_each_intel_crtc(display->drm, crtc) {
		const struct intel_crtc_state *crtc_state =
			to_intel_crtc_state(crtc->base.state);
		enum pipe pipe = crtc->pipe;

		if (crtc_state->hw.active)
			bw_state->active_pipes |= BIT(pipe);

		intel_bw_crtc_update(bw_state, crtc_state);
	}