From 2c569d22d2d243badc15d5dbcc09e6759f4ff01a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 12 Feb 2013 20:15:33 +0000 Subject: sna: Only use the inplace read fallback if we have no CPU bo support Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3