From: Eric Anholt Subject: Re: [PATCH 08/11] drm/i915/context: extend contexts to execbuffer2 Date: Wed, 15 Feb 2012 11:55:56 -0800 Message-ID: <877gzneur7.fsf@eliezer.anholt.net> References: <1329253758-24943-1-git-send-email-ben@bwidawsk.net> <1329253758-24943-9-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1126232809==" Return-path: In-Reply-To: <1329253758-24943-9-git-send-email-ben@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: intel-gfx@lists.freedesktop.org Cc: Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org --===============1126232809== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 14 Feb 2012 22:09:15 +0100, Ben Widawsky wrote: > 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 > /** Resets the SO write offset registers for transform feedback on gen7.= */ > #define I915_EXEC_GEN7_SOL_RESET (1<<8) > +#define I915_EXEC_CONTEXT_MASK (((1<<22)-1) << 9) 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. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk88DcwACgkQHUdvYGzw6veFdgCbB9ln24UP7wVIEGURnoQSJ/fu WBwAnjR7Vycl8vSigrELxu7ZZ1eKmbWk =VmOt -----END PGP SIGNATURE----- --=-=-=-- --===============1126232809== 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 --===============1126232809==--