From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 7/7] drm/i915: Use enum plane instaad of numbers Date: Mon, 31 Mar 2014 19:33:54 +0200 Message-ID: <20140331173354.GX22327@phenom.ffwll.local> References: <1396279290-29435-1-git-send-email-ville.syrjala@linux.intel.com> <1396279290-29435-8-git-send-email-ville.syrjala@linux.intel.com> <20140331173104.GW22327@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 2892E6E3A1 for ; Mon, 31 Mar 2014 10:33:59 -0700 (PDT) Received: by mail-we0-f181.google.com with SMTP id q58so4920287wes.26 for ; Mon, 31 Mar 2014 10:33:58 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140331173104.GW22327@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: ville.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Mar 31, 2014 at 07:31:04PM +0200, Daniel Vetter wrote: > On Mon, Mar 31, 2014 at 06:21:30PM +0300, ville.syrjala@linux.intel.com w= rote: > > From: Ville Syrj=E4l=E4 > > = > > Change the update_plane() plane checks to use enum plane, and > > also fix up the error message to say something that's not total > > nonsense. > > = > > FIXME killing the checks entirely is probably a better idea > = > At least killing the totally outdated SAREA comment would be good ;-) But > yeah I really don't see much point in this, especially since we'll > happily frob plane C on ilk/snb despite that we're only supporting it on > ivb+ really. > = > Looking through git history with git blame it seems like this went defunct > somewhere in the large modesetting rewrite. Or even earlier ... in any > case very confusing history and ripe for the bin. Forgotten to add: The actually still working "can we update SAREA?" test is in intel_crtc_update_sarea. That should be mentioned in the commit message. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch