From: Eric Anholt Subject: Re: [PATCH] drm/i915: Add support for resetting the SO write pointers on gen7. Date: Wed, 04 Jan 2012 00:34:35 -0800 Message-ID: <87pqezzx0k.fsf@eliezer.anholt.net> References: <1325209977-27562-1-git-send-email-eric@anholt.net> <4F03CA34.4060504@bwidawsk.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0161414272==" Return-path: In-Reply-To: <4F03CA34.4060504@bwidawsk.net> 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: Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0161414272== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 03 Jan 2012 19:40:36 -0800, Ben Widawsky wrote: > On 12/29/2011 05:52 PM, Eric Anholt wrote: > > These registers are automatically incremented by the hardware during > > transform feedback to track where the next streamed vertex output > > should go. Unlike the previous generation, which had a packet for > > setting the corresponding registers to a defined value, gen7 only has > > MI_LOAD_REGISTER_IMM to do so. That's a secure packet (since it loads > > an arbitrary register), so we need to do it from the kernel, and it > > needs to be settable atomically with the batchbuffer execution so that > > two clients doing transform feedback don't stomp on each others' > > state. > > > > Instead of building a more complicated interface involcing setting the > > registers to a specific value, just set them to 0 when asked and > > userland can tweak its pointers accordingly. > > > > Signed-off-by: Eric Anholt > > +/** Resets the SO write offset registers for transform feedback on gen= 7. */ > > +#define I915_EXEC_GEN7_SOL_RESET (1<<8) > > + > > struct drm_i915_gem_pin { > > /** Handle of the buffer to be pinned. */ > > __u32 handle; >=20 > Is this something we want to carry long term wrt ABI. I really want to=20 > get context/ppgtt stuff out the door relatively soon (context should be=20 > ready to test really soon actually). >=20 > I'm totally unfamiliar with this register, but is this what you want the= =20 > interface to be permanently? Ultimately, we want this ABI plus contexts. Until then, we can live with this ABI alone. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8EDxsACgkQHUdvYGzw6vfc3wCgl4o2Pke5MjDqkmJ21O1V/ad0 8wYAnjbIuCf7IXt6C6gbNpQCfG9h0kf1 =3eTy -----END PGP SIGNATURE----- --=-=-=-- --===============0161414272== 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 --===============0161414272==--