diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-11 10:48:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-11 11:05:27 +0100 |
commit | e680e54eab6ffa72e5e1eb6cc0e3fe4b235b06a1 (patch) | |
tree | 9b43c6576a4ae93250568df676874f2f8f04f63e /src/sna/sna_accel.c | |
parent | d9bf6f3fecb3d691937da086a5270334c6c0e69a (diff) |
sna: Ignore setting read-only for temporary userptr maps
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |