aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-04 07:25:08 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-07-25 12:23:50 -0400
commite9808edd98679680804dfbc42c5ee8f1aa91f617 (patch)
tree5c5538b47f12b16de8faf3809479aebe76c67692 /include/drm
parentc0c7babc48c4f6943ed3070d04630ea3ac9272ee (diff)
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>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/i915_drm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index b923b032743f..0f149fe32211 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -704,7 +704,11 @@ struct drm_i915_gem_busy {
704 /** Handle of the buffer to check for busy */ 704 /** Handle of the buffer to check for busy */
705 __u32 handle; 705 __u32 handle;
706 706
707 /** Return busy status (1 if busy, 0 if idle) */ 707 /** Return busy status (1 if busy, 0 if idle).
708 * The high word is used to indicate on which rings the object
709 * currently resides:
710 * 16:31 - busy (r or r/w) rings (16 render, 17 bsd, 18 blt, etc)
711 */
708 __u32 busy; 712 __u32 busy;
709}; 713};
710 714