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/gen8_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/gen8_render.c')
-rw-r--r-- | src/sna/gen8_render.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c index 3d7f3a58..0b4638a2 100644 --- a/src/sna/gen8_render.c +++ b/src/sna/gen8_render.c @@ -2854,8 +2854,7 @@ fallback_blt: assert(src->depth == dst->depth); assert(src->width == dst->width); assert(src->height == dst->height); - return sna_render_copy_boxes__overlap(sna, alu, - src, src_bo, + return sna_render_copy_boxes__overlap(sna, alu, dst, dst_bo, src_dx, src_dy, dst_dx, dst_dy, box, n, &extents); |