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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to