diff mbox series

[7/8] drm/i915: No FBC+double wide pipe

Message ID 20210414022309.30898-8-ville.syrjala@linux.intel.com (mailing list archive)
State New
Headers show
Series drm/i915: FBC cleanups | expand

Commit Message

Ville Syrjälä April 14, 2021, 2:23 a.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

FBC and double wide pipe are mutually exclusive. Disable FBC when
we have to resort to double wide.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_fbc.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
index a8565c58d1f1..48cddf70488f 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -841,6 +841,11 @@  static int intel_crtc_fbc_check(struct intel_atomic_state *state,
 		return 0;
 	}
 
+	if (crtc_state->double_wide) {
+		crtc_state->no_fbc_reason = "double wide pipe";
+		return 0;
+	}
+
 	if (!intel_fbc_hw_tracking_covers_screen(plane_state)) {
 		crtc_state->no_fbc_reason = "plane too large";
 		return 0;