summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-12-16 10:53:26 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-12-16 10:53:26 +0000
commit83609af3681fad58af88387077bf7ce0c001a1da (patch)
tree92128efc62cc6be48195a10482ca1957fbed4782
parent6490585f65bde487da7bc41fa5cb1c5a028d0bf4 (diff)
sna: Tweak the idle SHM CopyArea path to also replace a busy GPU bo
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 23acf303..f59f153c 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4567,7 +4567,7 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
alu == GXcopy &&
DAMAGE_IS_ALL(src_priv->cpu_damage) &&
!__kgem_bo_is_busy(&sna->kgem, src_priv->cpu_bo) &&
- !__kgem_bo_is_busy(&sna->kgem, bo))
+ (replaces || !__kgem_bo_is_busy(&sna->kgem, bo)))
goto fallback;
RegionTranslate(region, src_dx, src_dy);