summaryrefslogtreecommitdiff
path: root/src/sna/gen7_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-12-07 17:24:42 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-12-07 17:24:42 +0000
commit52405b2aed492dc7f76fbf082122842f621e7c06 (patch)
tree5cf35e31649549d555024a5ed642a7edb52eead6 /src/sna/gen7_render.c
parent4b7bbb2a23b03bac63f864c33f47fab88dedbf67 (diff)
sna: Only inspect the target ring for busyness
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen7_render.c')
-rw-r--r--src/sna/gen7_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 575d67af..eb34ff2f 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -2514,7 +2514,8 @@ inline static bool can_switch_to_blt(struct sna *sna)
if (!sna->kgem.has_semaphores)
return false;
- return sna->kgem.mode == KGEM_NONE || kgem_is_idle(&sna->kgem);
+ return (sna->kgem.mode == KGEM_NONE ||
+ kgem_ring_is_idle(&sna->kgem, KGEM_BLT));
}
static inline bool untiled_tlb_miss(struct kgem_bo *bo)