From: Zhenyu Wang Subject: Re: [intel-gfx][PATCH 2/2] drm/i915: Add a new ring buffer on Sandybridge Date: Thu, 2 Sep 2010 23:23:38 +0800 Message-ID: <20100902152338.GA22015@zhen-devel.sh.intel.com> References: <1283435214-5659-1-git-send-email-haihao.xiang@intel.com> <20100902145619.GA3471@viiv.ffwll.ch> Reply-To: Zhenyu Wang Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1535832681==" Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 931829E758 for ; Thu, 2 Sep 2010 08:23:58 -0700 (PDT) In-Reply-To: <20100902145619.GA3471@viiv.ffwll.ch> 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: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1535832681== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010.09.02 16:56:19 +0200, Daniel Vetter wrote: > If I'm not completely mistaken, all these ringbuffer register have the > same offsets over a common base: 0x02000 for the render ring, 0x04000 for > bsd on gen5, 0x12000 for bsd on gen6. yes, 0x22000 for blitter on gen6. >=20 > Can't we just store that base somewhere in intel_ring_buffer and kill all > these copy&pasted register access macros? I've played around a bit with > this, and most functions become so small it's cheaper to convert them to > inlines. This also has the potential make the other functions simpler, > perhaps even making them fully generic. Oh, and adding new ringbuffers > should becoma way easier, too (blitter ring anyone?). >=20 > At least my local hacks here where good enough to watch the lotr. If you > want I'll push them somewhere, but the patches are not really great and > definitely conflict against newer stuff. >=20 please put it somewhere, I'd like to take a look, I feel uncomfortable to a= dd blitter ring in current structure... --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkx/wXoACgkQsQQaM014GCf2GgCcCR0zZaCqY1mT7AoGs7mLKZs+ i4oAnij56EHTJzZiJDVEBBGvEpfWVt63 =2Oxt -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v-- --===============1535832681== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1535832681==--