From: Damien Lespiau Subject: Re: [PATCH 3/3] drm/i915: Make num_sprites a per-pipe value Date: Fri, 28 Feb 2014 17:37:39 +0000 Message-ID: <20140228173739.GA9964@strange.amr.corp.intel.com> References: <1393605735-7772-1-git-send-email-damien.lespiau@intel.com> <1393605735-7772-4-git-send-email-damien.lespiau@intel.com> <20140228173002.GE21275@nuc-i3427.alporthouse.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 0124CFBCB9 for ; Fri, 28 Feb 2014 09:42:41 -0800 (PST) Content-Disposition: inline In-Reply-To: <20140228173002.GE21275@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Chris Wilson , intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Feb 28, 2014 at 05:30:02PM +0000, Chris Wilson wrote: > On Fri, Feb 28, 2014 at 04:42:15PM +0000, Damien Lespiau wrote: > > In the future, we need to be able to specify per-pipe number of > > planes/sprites. Let's start today! > > But today, what's wrong with: > for_each_pipe(pipe) info->num_sprites[pipe] = IS_VLV(dev) ? 2 : 1; I'd rather have info->num_sprites[pipe] == 0 when the device doesn't support that pipe, even if that value shouldn't be used anywhere. -- Damien