summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sna/kgem.h2
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;