<div class="gmail_quote">On Tue, Feb 14, 2012 at 19:09, Ben Widawsky <span dir="ltr"><<a href="mailto:ben@bwidawsk.net">ben@bwidawsk.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Ben Widawsky <<a href="mailto:bwidawsk@gmail.com">bwidawsk@gmail.com</a>><br>
<br>
Create all the necessary data structures and hooks to support a context<br>
API for userspace. Also plumb in the calls from the i915 core into the<br>
context subsystem. There is a new file i915_context.c which will hold a<br>
majority of the context related code. This file has nulled functions<br>
that get called by the proper part of the i915 driver. This of course<br>
requires a Makefile addition, as well as calls to the new nulled<br>
functions from the other partsd of the driver (i915_dma.c).<br>
<br>
With that, there are 2 new ioctls defined , one for creating a context,<br>
and one for destroying a context. These are defined in the necessary<br>
places, and again have null functionality<br>
<br>
It's likely that a third ioctl will be required to associate the context<br>
with an execbuf (likely execbuf3). Since that part is mostly trivial,<br>
and will surely be contentious, it's ignored for now.<br>
<br>
Signed-off-by: Ben Widawsky <<a href="mailto:ben@bwidawsk.net">ben@bwidawsk.net</a>><br></blockquote><div><br>
Reviewed-by: Eugeni Dodonov <<a href="mailto:eugeni.dodonov@intel.com">eugeni.dodonov@intel.com</a>><br><br></div></div>-- <br>Eugeni Dodonov<a href="http://eugeni.dodonov.net/" target="_blank"><br></a><br>