sna: Catch the short-circuit path for clearing clear on move-to-gpu as well

I thought the short-circuit path was only taken when already clear, I
was wrong.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-07-17 11:21:30 +01:00
parent 359b9cc82d
commit ed8c729ed0
1 changed files with 2 additions and 1 deletions

View File

@ -2766,9 +2766,10 @@ done:
sna_pixmap_free_cpu(sna, priv);
}
}
active:
if (flags & MOVE_WRITE)
priv->clear = false;
active:
assert(!priv->gpu_bo->proxy || (flags & MOVE_WRITE) == 0);
return sna_pixmap_mark_active(sna, priv);
}