Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b397c96b authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter
Browse files

drm/i915: Fix up pipe vs. double wide confusion



Double wide mode is only available on pipe A, except on GDG where
pipe B is also double wide capable.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 1d1d0e27
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4153,10 +4153,10 @@ static int intel_crtc_compute_config(struct intel_crtc *crtc,
		 * Enable pixel doubling when the dot clock
		 * is > 90% of the (display) core speed.
		 *
		 * XXX: No double-wide on 915GM pipe B. Is that
		 * the only reason for the pipe == PIPE_A check?
		 * GDG double wide on either pipe,
		 * otherwise pipe A only.
		 */
		if (crtc->pipe == PIPE_A &&
		if ((crtc->pipe == PIPE_A || IS_I915G(dev)) &&
		    adjusted_mode->clock > clock_limit * 9 / 10) {
			clock_limit *= 2;
			pipe_config->double_wide = true;