Merge branch 'topic/skl-stage1' into drm-intel-next-queued
[deliverable/linux.git] / drivers / gpu / drm / i915 / intel_drv.h
index 6171267868191692e02a0c0bca44293dc20be89c..072e69f4080e5d9c76584778376218d7fd3b044d 100644 (file)
@@ -743,6 +743,14 @@ hdmi_to_dig_port(struct intel_hdmi *intel_hdmi)
        return container_of(intel_hdmi, struct intel_digital_port, hdmi);
 }
 
+/*
+ * Returns the number of planes for this pipe, ie the number of sprites + 1
+ * (primary plane). This doesn't count the cursor plane then.
+ */
+static inline unsigned int intel_num_planes(struct intel_crtc *crtc)
+{
+       return INTEL_INFO(crtc->base.dev)->num_sprites[crtc->pipe] + 1;
+}
 
 /* i915_irq.c */
 bool intel_set_cpu_fifo_underrun_reporting(struct drm_device *dev,
This page took 0.035411 seconds and 5 git commands to generate.