diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-25 00:28:55 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-25 00:28:55 +0000 |
commit | be21a09fef0a3499153f2c123b65f1d5c872d437 (patch) | |
tree | 2a821c44c7590cc0ba4dc14a10beb579defe3ccc | |
parent | 7b69dc88094ee2bb017364cd4356f3ae69cbc1f1 (diff) |
sna: Only call move-to-gpu on scanout flush if we have cpu damage to move
Reduce the number of redundant calls.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 284c4891..8a5bf7d9 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -9110,7 +9110,7 @@ static bool sna_accel_flush(struct sna *sna) if (nothing_to_do && !sna->kgem.busy) _sna_accel_disarm_timer(sna, FLUSH_TIMER); - else + if (priv->cpu_damage) sna_pixmap_move_to_gpu(priv->pixmap, MOVE_READ); sna->kgem.busy = !nothing_to_do; kgem_bo_flush(&sna->kgem, priv->gpu_bo); |