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

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

drm/i915: Fix FBC1 plane checks for gen2



On gen2 and gen3 chipsets FBC is supported only on plane A. Fix (and
simplify) the plane checks in intel_update_fbc() accordingly.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 82f34496
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -537,10 +537,10 @@ void intel_update_fbc(struct drm_device *dev)
			DRM_DEBUG_KMS("mode too large for compression, disabling\n");
			DRM_DEBUG_KMS("mode too large for compression, disabling\n");
		goto out_disable;
		goto out_disable;
	}
	}
	if ((IS_I915GM(dev) || IS_I945GM(dev) || IS_HASWELL(dev)) &&
	if ((INTEL_INFO(dev)->gen < 4 || IS_HASWELL(dev)) &&
	    intel_crtc->plane != 0) {
	    intel_crtc->plane != PLANE_A) {
		if (set_no_fbc_reason(dev_priv, FBC_BAD_PLANE))
		if (set_no_fbc_reason(dev_priv, FBC_BAD_PLANE))
			DRM_DEBUG_KMS("plane not 0, disabling compression\n");
			DRM_DEBUG_KMS("plane not A, disabling compression\n");
		goto out_disable;
		goto out_disable;
	}
	}