summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-09-26 14:48:31 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-09-26 14:48:31 +0100
commitbf1268838a30cca6a181c7804b0d2640dcf94981 (patch)
treedc71a7a948097e5bfe0773356fcd4e805a5c85e9
parent50bd37cf7fb811001e79a27b35e5cd0544391cd9 (diff)
sna: Drop the REPLACES hint for a pinned target bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 9f0a4e44..655e6d98 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -3192,6 +3192,8 @@ sna_drawable_use_bo(DrawablePtr drawable, unsigned flags, const BoxRec *box,
flags |= PREFER_GPU;
if (priv->shm)
flags &= ~PREFER_GPU;
+ if (priv->pinned)
+ flags &= ~REPLACES;
if (priv->cpu && (flags & (FORCE_GPU | IGNORE_CPU)) == 0)
flags &= ~PREFER_GPU;