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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux