drm/i915: get rid of primary_enabled and use atomic state
[sfrench/cifs-2.6.git] / drivers / gpu / drm / i915 / intel_fbc.c
index 4165ce0644f7a959e6b53a4c34ac0178fd5bd7f6..6abb83432d4d710bb5e63322fbbb03f891ee4a5e 100644 (file)
@@ -457,7 +457,7 @@ static struct drm_crtc *intel_fbc_find_crtc(struct drm_i915_private *dev_priv)
                tmp_crtc = dev_priv->pipe_to_crtc_mapping[pipe];
 
                if (intel_crtc_active(tmp_crtc) &&
-                   to_intel_crtc(tmp_crtc)->primary_enabled) {
+                   to_intel_plane_state(tmp_crtc->primary->state)->visible) {
                        if (one_pipe_only && crtc) {
                                if (set_no_fbc_reason(dev_priv, FBC_MULTIPLE_PIPES))
                                        DRM_DEBUG_KMS("more than one pipe active, disabling compression\n");