xf86-video-intel: src/sna/sna_accel.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Feb 12 13:04:04 PST 2013


 src/sna/sna_accel.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2c569d22d2d243badc15d5dbcc09e6759f4ff01a
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Feb 12 20:15:33 2013 +0000

    sna: Only use the inplace read fallback if we have no CPU bo support
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 839db66..18046a6 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,


More information about the xorg-commit mailing list