From: Jesse Barnes Subject: Re: [PATCH 08/11] drm/i915/context: extend contexts to execbuffer2 Date: Fri, 17 Feb 2012 10:03:23 -0800 Message-ID: <20120217100323.51b053c2@jbarnes-desktop> References: <1329253758-24943-1-git-send-email-ben@bwidawsk.net> <1329253758-24943-9-git-send-email-ben@bwidawsk.net> <877gzneur7.fsf@eliezer.anholt.net> <20120215210016.2b63994c@bwidawsk.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1722019313==" Return-path: Received: from oproxy6-pub.bluehost.com (oproxy6-pub.bluehost.com [67.222.54.6]) by gabe.freedesktop.org (Postfix) with SMTP id 350479EB4B for ; Fri, 17 Feb 2012 10:03:28 -0800 (PST) In-Reply-To: <20120215210016.2b63994c@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 --===============1722019313== Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Re8nOe+=da_DegV6FrVQ3cH"; protocol="application/pgp-signature" --Sig_/Re8nOe+=da_DegV6FrVQ3cH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 15 Feb 2012 21:00:16 +0100 Ben Widawsky wrote: > On Wed, 15 Feb 2012 11:55:56 -0800 > Eric Anholt wrote: >=20 > > On Tue, 14 Feb 2012 22:09:15 +0100, Ben Widawsky wro= te: > > > Extend the flag parameter to support the context id (from the create > > > IOCTL) so that userspace can associate a context with the batchbuffer. > > >=20 > > > Signed-off-by: Ben Widawsky > >=20 > > > /** Resets the SO write offset registers for transform feedback on g= en7. */ > > > #define I915_EXEC_GEN7_SOL_RESET (1<<8) > > > +#define I915_EXEC_CONTEXT_MASK (((1<<22)-1) << 9) > >=20 > > Instead of stuffing a context id into a subset of flags, could we just > > use a uint32_t context id in half of rsvd1? Yeah, having over 1 << 22 > > contexts is crazy, but this just seems to eat up all the rest of the > > flags for no reason and then we'll have to carve out of rsvd1 for the > > next flag. >=20 > Sure. I didn't know if rsvd fields were allowed to be used, and I was too= lazy > to check libdrm history to see if they'd always been zero'd out. >=20 > So yes, I will update this. Yeah it's ok to use them. We added them for just this purpose iirc, and even tried to make sure we could use them in the future by making sure old (then current) userspace zeroed them out. --=20 Jesse Barnes, Intel Open Source Technology Center --Sig_/Re8nOe+=da_DegV6FrVQ3cH Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJPPpZrAAoJEIEoDkX4Qk9h/lgP+wTLP/BNzQB4jRkEZIa3nhoi t+47D9Z2IonzZkJGPF3UMLMoUAWIJxZ7/NL/vSJCF/aIaa77DxGj8Hea9NLOCf7n qsEF6Wa6LOQqQyS0MYrJfvt1AwnG/vos2pnhu8jorG0omixCplFutZewgZDKcSy/ 1PmCM+7/Fghhj6Qe8tzRhxb2R7FZEB/3EYrJV/ch4lHW3MB9/trK5/fOhY3HcFkA nvnA6X2RIpGYAqv2TTyjLAiGKtMh1z7WMI1MCD1mFzSO6pm7JO1HF6CDfpCUgveC zx3q9W5OQnHmmyFRPowDAcPfHe9IU6fi738iYz6m2N0EYOXhdGu4aZv/aFAaCFg/ l3J5E7w+3EVYUBQYpE+lI9NtkR1S4HP2uGGPLzfD0IsnNlZ5lXah8ke1pnF/bPBS 5AGe2JS9m5pVHra3jg1Ngut/6VUqqp/LfeuaWOhpNx69ZyizXDf8Z5etlmYavXd3 WRtVdQuYqjzolkYmN5jN5q1RjiUdZ1dEOok0ZbSFWaktZ9Qr68IQ1GeKP7o4M7yk EAxjz/Lwxv1lYUPJQh3wcRC+Ee7WUdcrqnIIPIsMvKUWm51A2vGHvnrimXUPLjQH 6Jw7HIyaZJS+/aOR7DKHip3yW+BcCx7wCr6GdcTtpj3Lgtf+QgXg+nNyXHsdEa/k 4EjJcXNMHcSWpbK7tbAD =EzCJ -----END PGP SIGNATURE----- --Sig_/Re8nOe+=da_DegV6FrVQ3cH-- --===============1722019313== 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 --===============1722019313==--