From e680e54eab6ffa72e5e1eb6cc0e3fe4b235b06a1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 11 Jun 2014 10:48:26 +0100 Subject: sna: Ignore setting read-only for temporary userptr maps Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sna/sna_accel.c') diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 563712c8..ed53fcc8 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -4460,7 +4460,7 @@ try_upload_blt(PixmapPtr pixmap, RegionRec *region, if (!sna_pixmap_move_area_to_gpu(pixmap, ®ion->extents, MOVE_WRITE | MOVE_ASYNC_HINT | (region->data ? MOVE_READ : 0))) return false; - src_bo = kgem_create_map(&sna->kgem, bits, stride * h, true); + src_bo = kgem_create_map(&sna->kgem, bits, stride * h, false); if (src_bo == NULL) return false; @@ -6223,7 +6223,7 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc, src_bo = kgem_create_map(&sna->kgem, src_pixmap->devPrivate.ptr, src_pixmap->devKind * src_pixmap->drawable.height, - true); + false); if (src_bo) { src_bo->pitch = src_pixmap->devKind; kgem_bo_mark_unreusable(src_bo); -- cgit v1.2.3