]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: Broaden FBC resolution limit to 4096*4096
authorDaisy Sun <daisy.sun@intel.com>
Mon, 16 Jun 2014 22:48:18 +0000 (15:48 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Jun 2014 08:46:12 +0000 (10:46 +0200)
Staring from HSW, the resolution limit of FBC has increased to
4096*4096

Issue: VIZ-2813
Change-Id: I842f64e3cf2c0d18d29ef1bcfef3b9bb1f1764ac
Signed-off-by: Daisy Sun <daisy.sun@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index 537a7ee8e5c92568c3a834fbd0d0b74334e0cbd3..6cd11aaf0bb48a5295bcccbd95887f5669ef9831 100644 (file)
@@ -530,7 +530,10 @@ void intel_update_fbc(struct drm_device *dev)
                goto out_disable;
        }
 
-       if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
+       if (INTEL_INFO(dev)->gen >= 8 || IS_HASWELL(dev)) {
+               max_width = 4096;
+               max_height = 4096;
+       } else if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
                max_width = 4096;
                max_height = 2048;
        } else {