summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-02-05 11:41:42 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-02-05 11:44:01 +0000
commit02eceefa2909075aca0ba3df7fdba835079aeb78 (patch)
treed646eeecf859b7b9e5769508f5c3c9be3d7cbce0 /src
parentde73c5fd1cd4f948b8bd3582ae788f6f855c5b16 (diff)
sna: Pass read hints from move-to-cpu to wait_for_shadow
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index d31fa22a..758bf887 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1975,7 +1975,7 @@ _sna_pixmap_move_to_cpu(PixmapPtr pixmap, unsigned int flags)
goto done;
}
- if (priv->move_to_gpu && !priv->move_to_gpu(sna, priv, MOVE_READ)) {
+ if (priv->move_to_gpu && !priv->move_to_gpu(sna, priv, priv->gpu_damage ? flags & MOVE_READ: 0)) {
DBG(("%s: move-to-gpu override failed\n", __FUNCTION__));
return false;
}