summaryrefslogtreecommitdiff
path: root/src/sna
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-11-24 20:16:29 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-11-24 20:16:29 +0000
commit39f1e228b74e98d3d87157cf093fc56ca31e6b13 (patch)
tree20cd3441f355f187fc7cceefa0c7735d0b966250 /src/sna
parent40b6121746c55153de444ccb753df80706ff3a69 (diff)
sna: Make GPU idle more consistent during wakeup
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r--src/sna/sna_accel.c4
1 files changed, 2 insertions, 2 deletions
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);