summaryrefslogtreecommitdiff
path: root/src/sna
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-04 13:04:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-04 13:04:02 +0100
commit6a64a3ae55ad5f743d2b7a4852b6ca7b54d2a142 (patch)
treeb16ea1ca402caf71f80fcbd9d15d72f01a856500 /src/sna
parent2c8ab77fcd71b7f96ad7bc379e5c68b3b45a5069 (diff)
sna: Discard operations to either CPU or GPU bo when overwriting with RenderRectangles
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r--src/sna/sna_composite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_composite.c b/src/sna/sna_composite.c
index bc50109b..e65bce03 100644
--- a/src/sna/sna_composite.c
+++ b/src/sna/sna_composite.c
@@ -1021,7 +1021,7 @@ sna_composite_rectangles(CARD8 op,
goto fallback;
}
if (hint & REPLACES)
- kgem_bo_undo(&sna->kgem, bo);
+ kgem_bo_pair_undo(&sna->kgem, priv->gpu_bo, priv->cpu_bo);
if (op <= PictOpSrc) {
b = pixman_region_rectangles(&region, &num_boxes);