[Intel-gfx] [PATCH 09/13] drm/i915: Split plane watermark parameters into a separate struct

Chris Wilson chris at chris-wilson.co.uk
Tue Aug 6 22:10:19 CEST 2013


On Tue, Aug 06, 2013 at 10:24:08PM +0300, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Give a name to the plane watermark related data we have currently
> stored under intel_plane->wm.
> 
> We also observe that this data is more or less the same that we have
> in the hsw_pipe_wm_parameters structure, so use it there as well.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>

> ---
>  drivers/gpu/drm/i915/intel_drv.h | 14 +++++-----
>  drivers/gpu/drm/i915/intel_pm.c  | 57 +++++++++++++++++++---------------------
>  2 files changed, 35 insertions(+), 36 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
> index ed33976..0366bca 100644
> --- a/drivers/gpu/drm/i915/intel_drv.h
> +++ b/drivers/gpu/drm/i915/intel_drv.h
> @@ -330,6 +330,13 @@ struct intel_crtc {
>  	bool pch_fifo_underrun_disabled;
>  };
>  
> +struct intel_plane_wm_parameters {
> +	bool enabled;
> +	bool scaled;
> +	uint8_t bytes_per_pixel;
> +	uint32_t horiz_pixels;

You are no friend to pa-hole.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list