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

Chris Wilson ickle at kemper.freedesktop.org
Fri Jan 9 09:59:34 PST 2015


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

New commits:
commit 07096568e71fd1358a8920b15f40d38d10bce2c0
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Jan 9 17:58:24 2015 +0000

    sna: Actually set the priv->mapped type for mmap(wc)
    
    A glitch from the last patch forgot to set the priv->mapped flag
    correctly after setting up a mmap(wc).
    
    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 45f744c..3adb9a7 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -6289,7 +6289,7 @@ upload_inplace:
 				dst_priv->mapped = MAPPED_CPU;
 				dst_priv->cpu = true;
 			} else
-				dst_priv->cpu = false;
+				dst_priv->mapped = MAPPED_GTT;
 			assert_pixmap_map(dst_pixmap, dst_priv);
 		}
 	}


More information about the xorg-commit mailing list