summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-23 20:31:21 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-23 22:11:19 +0000
commit1cc07fa2d24b10ac95c7a84908290ec06539d447 (patch)
treedc3a3c6e65783c5b0c207eccddcaef204be87daa
parente5bfea5826117bdd29664d83b3d478ff9db29ca3 (diff)
sna: Avoid forced creation of GPU bo for tiny operations and dirty pixmaps
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index a95490df..9cde9492 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1090,7 +1090,8 @@ _sna_drawable_use_gpu_bo(DrawablePtr drawable,
if (priv == NULL)
return FALSE;
- if (pixmap->devPrivate.ptr == NULL &&
+ if (priv->cpu_damage == NULL &&
+ sna_pixmap_choose_tiling(pixmap) != I915_TILING_NONE &&
!sna_pixmap_move_to_gpu(pixmap, MOVE_READ | MOVE_WRITE))
return FALSE;