diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-07 17:40:37 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-07 17:40:37 +0000 |
commit | cef11795f627a393d4254845b0a19eefbf6c782c (patch) | |
tree | b04e411fa0e0c1138cf6b80093e89ac1e680523f /src | |
parent | 52405b2aed492dc7f76fbf082122842f621e7c06 (diff) |
sna: Convert the ring from BLT/3D to the internal index for kgem_ring_is_idle()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/kgem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h index ccefc48f..e7e53af5 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -289,6 +289,8 @@ static inline bool kgem_is_idle(struct kgem *kgem) bool __kgem_ring_is_idle(struct kgem *kgem, int ring); static inline bool kgem_ring_is_idle(struct kgem *kgem, int ring) { + ring = ring == KGEM_BLT; + if (list_is_empty(&kgem->requests[ring])) return true; |