diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-12 09:24:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-12 09:24:11 +0000 |
commit | 2682308c10c9622247409dee9c6bb6a862b73c3f (patch) | |
tree | 2dc4e594d66b2f02de2e0d0b4da0f8d6b91a92c5 | |
parent | 7703424222f8bd08450c1b109ea64c6b0ee901d8 (diff) |
sna: Remove bo transference for whole XCopyArea
In benchmarking firefox this performs whose - it would appear the
sources are indeed used more often than not.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 861cbe75..a71d5e1e 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2012,35 +2012,6 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc, src_priv ? src_priv->cpu_bo : NULL, replaces)); - if (replaces) { - if (src_pixmap->drawable.width == dst_pixmap->drawable.width && - src_pixmap->drawable.height == dst_pixmap->drawable.height && - dst_priv && !dst_priv->pinned && 0 && - src_priv && !src_priv->pinned && - src_priv->gpu_damage == NULL) { - if (sna_pixmap_move_to_gpu(src_pixmap)) { - DBG(("%s: transferring src GPU bo to dst\n", __FUNCTION__)); - if (dst_priv->gpu_bo) - kgem_bo_destroy(&sna->kgem, dst_priv->gpu_bo); - sna_damage_destroy(&dst_priv->cpu_damage); - sna_damage_all(&dst_priv->gpu_damage, - dst_pixmap->drawable.width, - dst_pixmap->drawable.height); - - dst_priv->gpu_bo = src_priv->gpu_bo; - src_priv->gpu_bo = NULL; - - sna_damage_all(&src_priv->cpu_damage, - src_pixmap->drawable.width, - src_pixmap->drawable.height); - return; - } - } - - if (!src_priv || src_priv->gpu_bo == NULL || src_priv->cpu_damage) - goto fallback; - } - /* Try to maintain the data on the GPU */ if (dst_priv && dst_priv->gpu_bo == NULL && src_priv && src_priv->gpu_bo != NULL) { |