sna: Avoid forced creation of GPU bo for tiny operations and dirty pixmaps

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-23 20:31:21 +00:00
parent e5bfea5826
commit 1cc07fa2d2
1 changed files with 2 additions and 1 deletions

View File

@ -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;