]> Pileus Git - ~andy/linux/commit
drm/i915: Return a mask of the active rings in the high word of busy_ioctl
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Jul 2012 11:25:08 +0000 (12:25 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 25 Jul 2012 16:23:50 +0000 (18:23 +0200)
commite9808edd98679680804dfbc42c5ee8f1aa91f617
tree5c5538b47f12b16de8faf3809479aebe76c67692
parentc0c7babc48c4f6943ed3070d04630ea3ac9272ee
drm/i915: Return a mask of the active rings in the high word of busy_ioctl

The intention is to help select which engine to use for copies with
interoperating clients - such as a GL client making a request to the X
server to perform a SwapBuffers, which may require copying from the
active GL back buffer to the X front buffer.

We choose to report a mask of the active rings to future proof the
interface against any changes which may allow for the object to reside
upon multiple rings.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: bikeshed away the write ring mask and add the explanation
Chris sent in a follow-up mail why we decided to use masks.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c
include/drm/i915_drm.h