summaryrefslogtreecommitdiff
path: root/src/sna/gen8_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-08-19 16:39:11 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-08-19 16:48:58 +0100
commit8a59e85801cb0592eb2d0a074d9254d26a65240f (patch)
tree5e6870021c0432ace39598226bdad9a3a7447fe7 /src/sna/gen8_render.c
parent8c59c5ba4e368af2ee4a4a811ebf3934de7e4402 (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.c3
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);