Merge remote-tracking branch 'airlied/drm-next' into drm-intel-next-queued
[linux-2.6-block.git] / drivers / gpu / drm / i915 / intel_fbc.c
index 49048d9d7895153b2cea961e03de07b147a19f1f..cbe2ebda4c4092e19bc96985882c539602a1ff46 100644 (file)
@@ -104,8 +104,10 @@ static int intel_fbc_calculate_cfb_size(struct drm_i915_private *dev_priv,
        int lines;
 
        intel_fbc_get_plane_source_size(cache, NULL, &lines);
-       if (INTEL_INFO(dev_priv)->gen >= 7)
+       if (INTEL_GEN(dev_priv) == 7)
                lines = min(lines, 2048);
+       else if (INTEL_GEN(dev_priv) >= 8)
+               lines = min(lines, 2560);
 
        /* Hardware needs the full buffer stride, not just the active area. */
        return lines * cache->fb.stride;