drm/i915/context: switch contexts with execbuf2
authorBen Widawsky <ben@bwidawsk.net>
Mon, 4 Jun 2012 21:42:55 +0000 (14:42 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 14 Jun 2012 15:36:21 +0000 (17:36 +0200)
commit6e0a69dbc81b88f5a42e08344203021571f6fb2f
treea5952c8ff568fab09aea7edae1bc63e35b5714c1
parent846248136dd3a6723135b8515ed7dc4c52a7b2ae
drm/i915/context: switch contexts with execbuf2

Use the rsvd1 field in execbuf2 to specify the context ID associated
with the workload. This will allow the driver to do the proper context
switch when/if needed.

v2: Add checks for context switches on rings not supporting contexts.
Before the code would silently ignore such requests.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
drivers/gpu/drm/i915/i915_gem_execbuffer.c
include/drm/i915_drm.h