Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329245
b: refs/heads/master
c: e9808ed
h: refs/heads/master
i:
  329243: a5c923b
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Jul 25, 2012
1 parent 7ae2377 commit 72ee4e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0c7babc48c4f6943ed3070d04630ea3ac9272ee
refs/heads/master: e9808edd98679680804dfbc42c5ee8f1aa91f617
4 changes: 4 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3400,6 +3400,10 @@ i915_gem_busy_ioctl(struct drm_device *dev, void *data,
ret = i915_gem_object_flush_active(obj);

args->busy = obj->active;
if (obj->ring) {
BUILD_BUG_ON(I915_NUM_RINGS > 16);
args->busy |= intel_ring_flag(obj->ring) << 16;
}

drm_gem_object_unreference(&obj->base);
unlock:
Expand Down
6 changes: 5 additions & 1 deletion trunk/include/drm/i915_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,11 @@ struct drm_i915_gem_busy {
/** Handle of the buffer to check for busy */
__u32 handle;

/** Return busy status (1 if busy, 0 if idle) */
/** Return busy status (1 if busy, 0 if idle).
* The high word is used to indicate on which rings the object
* currently resides:
* 16:31 - busy (r or r/w) rings (16 render, 17 bsd, 18 blt, etc)
*/
__u32 busy;
};

Expand Down

0 comments on commit 72ee4e5

Please sign in to comment.