summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-02-12 20:15:33 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-02-12 20:15:33 +0000
commit2c569d22d2d243badc15d5dbcc09e6759f4ff01a (patch)
treef5876e0dfbdecdfe1c2b508c46a1555ae97dfbde
parentaeaed0b7810e9c794749a4f59c72790063cddc86 (diff)
sna: Only use the inplace read fallback if we have no CPU bo support
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 839db66e..18046a64 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4579,7 +4579,8 @@ fallback:
RegionExtents(region));
mode = MOVE_READ;
- if (src_priv->cpu_bo == NULL)
+ if (src_priv->cpu_bo == NULL &&
+ (src_priv->create & KGEM_CAN_CREATE_CPU) == 0)
mode |= MOVE_INPLACE_HINT;
if (!sna_drawable_move_region_to_cpu(&src_pixmap->drawable,