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:
parent
e5bfea5826
commit
1cc07fa2d2
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue