summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-03-05 11:34:49 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-03-05 11:34:49 +0000
commit9fa9234c7061be3cff9a65aac0702f4c3caac40d (patch)
tree82c177e37389c473434963bd6d329d556ee8e169
parent60ec35b8d25ecfabf1744ea7bc81109d7f2a90e2 (diff)
sna: Prefer GPU for self-copies when undamaged on the CPU
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 3d17209a..924a88f2 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4041,7 +4041,7 @@ sna_self_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
if (priv == NULL || DAMAGE_IS_ALL(priv->cpu_damage) || priv->shm)
goto fallback;
- if (priv->gpu_damage) {
+ if (priv->gpu_damage || (priv->cpu_damage == NULL && priv->gpu_bo)) {
assert(priv->gpu_bo);
if (alu == GXcopy && priv->clear)