diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-05 09:15:12 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-05 09:15:12 +0100 |
commit | bdfedb46bd5bb3b96543a3ff553abd8ed0774fad (patch) | |
tree | 1de8f44dce284091fdcfb04b35fabb128c4875b8 /src/sna/sna_accel.c | |
parent | 67b75ae6f66e2d8e97b0aaf70d66b6de30f9e67e (diff) |
sna: Use async upload only if the last render was not CPU
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-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 66a08333..3c0736ee 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2986,7 +2986,7 @@ sna_pixmap_move_to_gpu(PixmapPtr pixmap, unsigned flags) assert(pixmap_contains_damage(pixmap, priv->cpu_damage)); DBG(("%s: uploading %d damage boxes\n", __FUNCTION__, n)); - if (DAMAGE_IS_ALL(priv->cpu_damage)) + if (!priv->cpu) flags |= MOVE_ASYNC_HINT; ok = false; |