Re: [PATCH 41/89] drm/i915/skl: Introduce intel_num_planes()

Rodrigo Vivi
2014-09-17T22:13:32Z

[-- Attachment #1.1: Type: text/plain, Size: 1436 bytes --]

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

On Thu, Sep 4, 2014 at 4:27 AM, Damien Lespiau <damien.lespiau@intel.com>
wrote:

> It can be handy to get the number of planes for this pipe, ie including
> the primary plane to loop over them. Introduce a little function to do
> so.
>
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> ---
> drivers/gpu/drm/i915/intel_drv.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_drv.h
> b/drivers/gpu/drm/i915/intel_drv.h
> index d727d20..3239e58 100644
> --- a/drivers/gpu/drm/i915/intel_drv.h
> +++ b/drivers/gpu/drm/i915/intel_drv.h
> @@ -721,6 +721,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,
> --
> 1.8.3.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>

--
Rodrigo Vivi
Blog: http://blog.vivi.eng.br

[-- Attachment #1.2: Type: text/html, Size: 2283 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org