summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-21 01:01:47 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-21 01:03:05 +0000
commit38b0cc24b45afd4ed57187fb066896bf1e467f45 (patch)
tree890df92616475653f7c3715b1a2d8fda714e62f1
parentf49a6b1fd7e23252b2a306f8bdb9baed5c1e8d4b (diff)
sna: Remove the short-circuiting of move-to-cpu for read if no damage
The danger now is that we may have either discarded the shadow pixels or have replaced them with a GTT mapping, either way undesirable and so we should reconstruct the shadow mapping. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 55c5f5a3..949c18ff 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -435,7 +435,7 @@ static inline bool must_check sna_pixmap_move_to_cpu(PixmapPtr pixmap, unsigned
{
if (flags == MOVE_READ) {
struct sna_pixmap *priv = sna_pixmap(pixmap);
- if (priv == NULL || priv->gpu_damage == NULL)
+ if (priv == NULL)
return true;
}