From: Daniel Vetter Subject: Re: [PATCH 1/9] drm/i915: Consolidate binding parameters into flags Date: Mon, 27 Jan 2014 22:55:04 +0100 Message-ID: <20140127215504.GI9772@phenom.ffwll.local> References: <1390846259-14915-1-git-send-email-daniel.vetter@ffwll.ch> <1390846259-14915-2-git-send-email-daniel.vetter@ffwll.ch> <20140127214712.GG2508@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by gabe.freedesktop.org (Postfix) with ESMTP id B820FFC386 for ; Mon, 27 Jan 2014 13:55:11 -0800 (PST) Received: by mail-ee0-f54.google.com with SMTP id e53so2512426eek.41 for ; Mon, 27 Jan 2014 13:55:09 -0800 (PST) Content-Disposition: inline In-Reply-To: <20140127214712.GG2508@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 , Daniel Vetter , Intel Graphics Development , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Mon, Jan 27, 2014 at 09:47:12PM +0000, Chris Wilson wrote: > On Mon, Jan 27, 2014 at 07:10:51PM +0100, Daniel Vetter wrote: > > Anything more than just one bool parameter is just a pain to read, > > symbolic constants are much better. > > This patch introduces PIN_GLOBAL which is required for ggtt_pin to > remain correct with the flag changes in the later patches, but > PIN_GLOBAL is only implemented in the final patch, patch 9. Indeed I've fumbled this. Will reshuffle. The entire global/ppgtt pin stuff is fairly messy in the current code anyway, dunno whether we can do better. The code as-is just feels like it's hiding things a bit ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch