[Intel-gfx] [PATCH 02/13] drm/i915: Split the framebuffer_info creation into a separate routine

Chris Wilson chris at chris-wilson.co.uk
Tue Apr 2 19:13:20 CEST 2013


On Tue, Apr 02, 2013 at 10:03:46AM -0700, Jesse Barnes wrote:
>  static u32
> -intel_framebuffer_pitch_for_width(int width, int bpp)
> -{
> -	u32 pitch = DIV_ROUND_UP(width * bpp, 8);
> -	return ALIGN(pitch, 64);
> -}

Before this patch we need:

  statuc u32 intel_framebuffer_pitch_for_width(int width, int bpp)
  {
    u32 pitch = width * DIV_ROUND_UP(bpp, 8);
    return ALIGN(pitch, 64);
  }

to address the issue Imre pointed out earlier.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list