From: Eric Anholt Subject: Re: [PATCH 05/11] drm/i915/context: Preliminary context support Date: Wed, 15 Feb 2012 12:23:44 -0800 Message-ID: <87vcn7dewf.fsf@eliezer.anholt.net> References: <1329253758-24943-1-git-send-email-ben@bwidawsk.net> <1329253758-24943-6-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0654362794==" Return-path: In-Reply-To: <1329253758-24943-6-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 --===============0654362794== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 14 Feb 2012 22:09:12 +0100, Ben Widawsky wrote: > From: Ben Widawsky >=20 > Create all the necessary data structures and hooks to support a context > API for userspace. Also plumb in the calls from the i915 core into the > context subsystem. There is a new file i915_context.c which will hold a > majority of the context related code. This file has nulled functions > that get called by the proper part of the i915 driver. This of course > requires a Makefile addition, as well as calls to the new nulled > functions from the other partsd of the driver (i915_dma.c). >=20 > With that, there are 2 new ioctls defined , one for creating a context, > and one for destroying a context. These are defined in the necessary > places, and again have null functionality >=20 > It's likely that a third ioctl will be required to associate the context > with an execbuf (likely execbuf3). Since that part is mostly trivial, > and will surely be contentious, it's ignored for now. > +struct drm_i915_gem_context_create { > + /* output: id of new context*/ > + __u32 ctx_id; > + > + __u16 pad; > +}; The pad should be made u32 at this point instead of fixing it up in a later commit. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk88FFAACgkQHUdvYGzw6vdUdgCfbGjSdaXZEeoLM5NXzFvdbZir PVMAnjUAkgzNyHPdYDdmleVwOsLkBDfy =bGhR -----END PGP SIGNATURE----- --=-=-=-- --===============0654362794== 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 --===============0654362794==--