aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-03-03 12:31:48 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-05 15:30:38 -0500
commitd615a16622745d8e4c1104d5ca46c058ef576b7a (patch)
treeeaa37582f8209527bcac9cd08c9cca95ea1f2ad1 /drivers/gpu/drm/i915/i915_dma.c
parent1fe477856e2237bdc26173ea203ce99ff6f1392b (diff)
drm/i915: Make num_sprites a per-pipe value
In the future, we need to be able to specify per-pipe number of planes/sprites. Let's start today! Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index f8f7a59ab076..e4d2b9f15ae2 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1480,12 +1480,16 @@ static void intel_device_info_runtime_init(struct drm_device *dev)
1480{ 1480{
1481 struct drm_i915_private *dev_priv = dev->dev_private; 1481 struct drm_i915_private *dev_priv = dev->dev_private;
1482 struct intel_device_info *info; 1482 struct intel_device_info *info;
1483 enum pipe pipe;
1483 1484
1484 info = (struct intel_device_info *)&dev_priv->info; 1485 info = (struct intel_device_info *)&dev_priv->info;
1485 1486
1486 info->num_sprites = 1;
1487 if (IS_VALLEYVIEW(dev)) 1487 if (IS_VALLEYVIEW(dev))
1488 info->num_sprites = 2; 1488 for_each_pipe(pipe)
1489 info->num_sprites[pipe] = 2;
1490 else
1491 for_each_pipe(pipe)
1492 info->num_sprites[pipe] = 1;
1489 1493
1490 if (i915.disable_display) { 1494 if (i915.disable_display) {
1491 DRM_INFO("Display disabled (module parameter)\n"); 1495 DRM_INFO("Display disabled (module parameter)\n");