]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915/bxt: Broxton has 3 sprite planes on pipe A/B, 2 on pipe C
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 17 Mar 2015 09:39:32 +0000 (11:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Apr 2015 13:57:48 +0000 (15:57 +0200)
v2: Rebase on top of the for_each_pipe() change adding dev_priv as first
    argument.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c

index 68e0c85a17cfcd5779ffab7b9aa0e8dba7cf0fac..ec661fe44e709e6a2bd90ce1dfda1f6f26ee1253 100644 (file)
@@ -585,7 +585,11 @@ static void intel_device_info_runtime_init(struct drm_device *dev)
 
        info = (struct intel_device_info *)&dev_priv->info;
 
-       if (IS_VALLEYVIEW(dev) || INTEL_INFO(dev)->gen == 9)
+       if (IS_BROXTON(dev)) {
+               info->num_sprites[PIPE_A] = 3;
+               info->num_sprites[PIPE_B] = 3;
+               info->num_sprites[PIPE_C] = 2;
+       } else if (IS_VALLEYVIEW(dev) || INTEL_INFO(dev)->gen == 9)
                for_each_pipe(dev_priv, pipe)
                        info->num_sprites[pipe] = 2;
        else