sna: Don't promote a ShmPixmap to GPU for a CopyArea

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-19 19:28:20 +01:00
parent 7bf7a5ad10
commit bbd7a82581
1 changed files with 3 additions and 1 deletions

View File

@ -3836,6 +3836,8 @@ move_to_gpu(PixmapPtr pixmap, struct sna_pixmap *priv,
} else {
if ((priv->create & KGEM_CAN_CREATE_GPU) == 0)
return false;
if (priv->shm)
return false;
}
count = priv->source_count++;
@ -3947,7 +3949,7 @@ sna_self_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
if (priv == NULL || DAMAGE_IS_ALL(priv->cpu_damage))
goto fallback;
if (priv->gpu_bo) {
if (priv->gpu_damage) {
if (alu == GXcopy && priv->clear)
goto out;