[Intel-gfx] [PATCH 04/35] drm/i915: Rename hsw_wm_get_pixel_rate to ilk_pipe_pixel_rate
Paulo Zanoni
przanoni at gmail.com
Tue Jul 30 21:20:42 CEST 2013
2013/7/5 <ville.syrjala at linux.intel.com>:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> hsw_wm_get_pixel_rate() isn't specific to HSW. In fact it should be made
> to handle all gens, but for now it depends on the PCH panel fitter
> state, so give it an ilk_ prefix.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
I couldn't find the ILK docs to check this, but SNB/IVB seems correct.
Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
> ---
> drivers/gpu/drm/i915/intel_pm.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index db548a1..b8fde13 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -2080,8 +2080,8 @@ static void ivybridge_update_wm(struct drm_device *dev)
> cursor_wm);
> }
>
> -static uint32_t hsw_wm_get_pixel_rate(struct drm_device *dev,
> - struct drm_crtc *crtc)
> +static uint32_t ilk_pipe_pixel_rate(struct drm_device *dev,
> + struct drm_crtc *crtc)
> {
> struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
> uint32_t pixel_rate, pfit_size;
> @@ -2373,7 +2373,7 @@ static void hsw_compute_wm_parameters(struct drm_device *dev,
> pipes_active++;
>
> p->pipe_htotal = intel_crtc->config.adjusted_mode.htotal;
> - p->pixel_rate = hsw_wm_get_pixel_rate(dev, crtc);
> + p->pixel_rate = ilk_pipe_pixel_rate(dev, crtc);
> p->pri_bytes_per_pixel = crtc->fb->bits_per_pixel / 8;
> p->cur_bytes_per_pixel = 4;
> p->pri_horiz_pixels =
> --
> 1.8.1.5
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Paulo Zanoni
More information about the Intel-gfx
mailing list