diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-26 14:48:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-26 14:48:31 +0100 |
commit | bf1268838a30cca6a181c7804b0d2640dcf94981 (patch) | |
tree | dc71a7a948097e5bfe0773356fcd4e805a5c85e9 | |
parent | 50bd37cf7fb811001e79a27b35e5cd0544391cd9 (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.c | 2 |
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; |