From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: Re: [PATCH 1/5] drm/i915: Initialise g4x watermarks for disabled pipes Date: Wed, 06 Apr 2011 09:02:22 +0100 Message-ID: References: <1301995458-2699-1-git-send-email-chris@chris-wilson.co.uk> <1301995458-2699-2-git-send-email-chris@chris-wilson.co.uk> <0d30dc$lntgob@orsmga001.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A4429E75A for ; Wed, 6 Apr 2011 01:02:25 -0700 (PDT) In-Reply-To: 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: Keith Packard , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, 06 Apr 2011 00:36:50 -0700, Keith Packard wrote: > On Wed, 06 Apr 2011 07:59:37 +0100, Chris Wilson wrote: > > > I'd prefer to keep the mucking around with intel_watermak_params in the > > one spot. How about: > > My concern is that g4x_compute_wm0 is now different from > ironlake_compute_wm0, which seems like a potential trap for the > unwary. A trap that I wrote for myself and fell into. The goal was to reduce the number of copies of the watermark computation by gradual refactoring. Looks like we can now indeed merge g4x_compute_wm0 and ironlake_compute_wm0 and ignore the off-values for gen5+. So fix the use of uninitialised values for -fixes and remove the redundant copy in -next? -Chris -- Chris Wilson, Intel Open Source Technology Centre