sna: Use async upload only if the last render was not CPU

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-09-05 09:15:12 +01:00
parent 67b75ae6f6
commit bdfedb46bd
1 changed files with 1 additions and 1 deletions

View File

@ -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;