diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-11-13 10:21:29 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-11-13 11:08:37 +0000 |
commit | ae293609c7400cd3c753ed3762772264c4741df5 (patch) | |
tree | 4d2b7994ac3a3c6cf516780188420d7767c8b2b0 | |
parent | 2954f15e2bcb590a90c2cb6077c0843ee25a4413 (diff) | |
download | xf86-video-intel-ae293609c7400cd3c753ed3762772264c4741df5.tar.gz xf86-video-intel-ae293609c7400cd3c753ed3762772264c4741df5.tar.bz2 xf86-video-intel-ae293609c7400cd3c753ed3762772264c4741df5.zip |
sna/gen4: Always initialise redirect
Do not assume the caller cleared the composite-op structure for us.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/gen4_render.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index be9745870..95a8363ed 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -2294,6 +2294,7 @@ gen4_render_composite(struct sna *sna, return false; sna_render_reduce_damage(tmp, dst_x, dst_y, width, height); + sna_render_composite_redirect_init(tmp); if (too_large(tmp->dst.width, tmp->dst.height) && !sna_render_composite_redirect(sna, tmp, dst_x, dst_y, width, height)) @@ -2669,6 +2670,7 @@ gen4_render_composite_spans(struct sna *sna, return false; sna_render_reduce_damage(&tmp->base, dst_x, dst_y, width, height); + sna_render_composite_redirect_init(&tmp->base); if (too_large(tmp->base.dst.width, tmp->base.dst.height)) { if (!sna_render_composite_redirect(sna, &tmp->base, dst_x, dst_y, width, height)) |