sna: Fix declaration of write intent for can_map__cpu in PutImage

We always are going to write to the image, despite the flag set in

commit fa961ec99a
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Jul 21 18:00:22 2013 +0100

    sna: Allow linear inplace uploads along the tiled X PutImage blt paths

which was accidentally conditional on the image not being too large.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-09-12 13:47:18 +01:00
parent 4fb651cb5f
commit bf4be323e3
1 changed files with 1 additions and 2 deletions

View File

@ -4157,8 +4157,7 @@ try_upload_tiled_x(PixmapPtr pixmap, RegionRec *region,
break;
}
if (!kgem_bo_can_map__cpu(&sna->kgem, priv->gpu_bo,
(priv->create & KGEM_CAN_CREATE_LARGE) == 0)) {
if (!kgem_bo_can_map__cpu(&sna->kgem, priv->gpu_bo, true)) {
DBG(("%s: no, cannot map through the CPU\n", __FUNCTION__));
return false;
}