summaryrefslogtreecommitdiff
path: root/src/sna/gen2_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-12-09 09:26:03 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-12-09 10:33:32 +0000
commitc8f622726a4463b419d032b379576cfb3bc492df (patch)
tree1386e03570c1b4dc7b3ce1a2c676e709d4ed4192 /src/sna/gen2_render.c
parent4e4e10935d2815fb62aeaedbfffe10aad115ec0b (diff)
sna: Replace remaining kgem_is_idle() with kgem_ring_is_idle()
Further experimentation... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen2_render.c')
-rw-r--r--src/sna/gen2_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c
index 2123cb9e..eeb0af40 100644
--- a/src/sna/gen2_render.c
+++ b/src/sna/gen2_render.c
@@ -3191,7 +3191,7 @@ gen2_render_context_switch(struct kgem *kgem,
/* Reload BLT registers following a lost context */
sna->blt_state.fill_bo = 0;
- if (kgem_is_idle(kgem)) {
+ if (kgem_ring_is_idle(kgem, kgem->ring)) {
DBG(("%s: GPU idle, flushing\n", __FUNCTION__));
_kgem_submit(kgem);
}