summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-02-12 19:13:31 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-24 14:57:30 +0200
commit1fc8ac3e5c355fb0f2864f5deebba3c7d77b4f21 (patch)
treed1e274ec53aa2852befedc34784c15e24a17dfd6 /drivers/gpu/drm/i915/i915_dma.c
parent3ca5da43003a5bd0ef1d4c15d015c77411e0df0d (diff)
downloadop-kernel-dev-1fc8ac3e5c355fb0f2864f5deebba3c7d77b4f21.zip
op-kernel-dev-1fc8ac3e5c355fb0f2864f5deebba3c7d77b4f21.tar.gz
drm/i915/skl: Skylake has 2 "sprite" planes per pipe
On Skylake, we use plane1 as primary plane and plane2/3 as sprite planes. v2: Rebase on top of the for_each_pipe() change adding dev_priv as first argument. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 1403b01..f64050d 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1534,7 +1534,7 @@ static void intel_device_info_runtime_init(struct drm_device *dev)
info = (struct intel_device_info *)&dev_priv->info;
- if (IS_VALLEYVIEW(dev))
+ if (IS_VALLEYVIEW(dev) || INTEL_INFO(dev)->gen == 9)
for_each_pipe(dev_priv, pipe)
info->num_sprites[pipe] = 2;
else
OpenPOWER on IntegriCloud