From: Chris Wilson Subject: Re: [PATCH 02/13] drm/i915: Split the framebuffer_info creation into a separate routine Date: Tue, 2 Apr 2013 18:13:20 +0100 Message-ID: <20130402171320.GC23293@cantiga.alporthouse.com> References: <1364922237-3620-1-git-send-email-jbarnes@virtuousgeek.org> <1364922237-3620-3-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A5FCE6150 for ; Tue, 2 Apr 2013 10:13:35 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1364922237-3620-3-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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