]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7420084568ea57b1c6be5d46451bdd97476e726a
treea5952c8ff568fab09aea7edae1bc63e35b5714c1
parentfe5709da8cdc2990ea110bdeb2bd63db0a68d7c9
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