diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-08-19 16:39:11 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-08-19 16:48:58 +0100 |
commit | 8a59e85801cb0592eb2d0a074d9254d26a65240f (patch) | |
tree | 5e6870021c0432ace39598226bdad9a3a7447fe7 /src/sna/sna_render.c | |
parent | 8c59c5ba4e368af2ee4a4a811ebf3934de7e4402 (diff) |
sna/dri2: Initialise scratch.pScreen for copying
Down one particular patch (overlapping render copies) the
scratch.pScreen is dereferenced (to create a temporary Pixmap). Ensure
that we populate it before hand.
References: https://bugs.freedesktop.org/show_bug.cgi?id=91658
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render.c')
-rw-r--r-- | src/sna/sna_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index a9945057..89267a3e 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -2169,11 +2169,11 @@ copy_overlap(struct sna *sna, uint8_t alu, ret = (sna->render.copy_boxes(sna, GXcopy, draw, bo, src_dx, src_dy, &tmp->drawable, tmp_bo, -extents->x1, -extents->y1, - box, n , 0) && + box, n, 0) && sna->render.copy_boxes(sna, alu, &tmp->drawable, tmp_bo, -extents->x1, -extents->y1, draw, bo, dst_dx, dst_dy, - box, n , 0)); + box, n, 0)); screen->DestroyPixmap(tmp); return ret; |