sna: Mark the upload as having acquired the GTT mapping
In order for the entire PutImage to be performed inplace, we need to maintain the tendency to keep doing inplace operations. This hint is provided by tracking whether or not the last operation used the GTT mapping. However, that hint was not being provided by zpixmap_blt. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
ce93c00a33
commit
f9451aaa39
|
|
@ -1901,6 +1901,14 @@ sna_put_zpixmap_blt(DrawablePtr drawable, GCPtr gc, RegionPtr region,
|
|||
sna_damage_add(&priv->gpu_damage, region);
|
||||
}
|
||||
|
||||
/* And mark as having a valid GTT mapping for future uploads */
|
||||
pixmap->devPrivate.ptr =
|
||||
kgem_bo_map(&sna->kgem, priv->gpu_bo, PROT_WRITE);
|
||||
if (pixmap->devPrivate.ptr) {
|
||||
priv->mapped = 1;
|
||||
pixmap->devKind = priv->gpu_bo->pitch;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue