sna: Discard operations to either CPU or GPU bo when overwriting with RenderRectangles
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Jul 2014 12:04:02 +0000 (13:04 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Jul 2014 12:04:02 +0000 (13:04 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_composite.c

index bc50109..e65bce0 100644 (file)
@@ -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);