From 39f1e228b74e98d3d87157cf093fc56ca31e6b13 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 24 Nov 2012 20:16:29 +0000 Subject: sna: Make GPU idle more consistent during wakeup Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sna') diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 1f9374ff..2f49f12c 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -14429,9 +14429,9 @@ void sna_accel_wakeup_handler(struct sna *sna) if (sna->kgem.need_retire) kgem_retire(&sna->kgem); - if (!sna->mode.shadow_active && !sna->kgem.need_retire) { + if (sna->kgem.nbatch && kgem_is_idle(&sna->kgem)) { DBG(("%s: GPU idle, flushing\n", __FUNCTION__)); - kgem_submit(&sna->kgem); + _kgem_submit(&sna->kgem); } if (sna->kgem.need_purge) kgem_purge_cache(&sna->kgem); -- cgit v1.2.3