From ec1ccb6bf6a984cbe3317e636d7ff73887348a46 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 7 Feb 2012 13:37:52 +0000 Subject: sna: Set the damage for render->copy_boxes to NULL before use Signed-off-by: Chris Wilson --- src/sna/gen2_render.c | 1 + src/sna/gen3_render.c | 1 + src/sna/gen4_render.c | 1 + src/sna/gen5_render.c | 1 + src/sna/gen6_render.c | 1 + src/sna/gen7_render.c | 1 + 6 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c index 1e0c680e..3db9ce73 100644 --- a/src/sna/gen2_render.c +++ b/src/sna/gen2_render.c @@ -2870,6 +2870,7 @@ fallback: tmp.dst.format = sna_format_for_depth(dst->drawable.depth); tmp.dst.bo = dst_bo; tmp.dst.x = tmp.dst.y = 0; + tmp.damage = NULL; sna_render_composite_redirect_init(&tmp); if (too_large(tmp.dst.width, tmp.dst.height) || diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c index b9afdb9a..0f0345c4 100644 --- a/src/sna/gen3_render.c +++ b/src/sna/gen3_render.c @@ -3859,6 +3859,7 @@ fallback_blt: tmp.dst.format = sna_format_for_depth(dst->drawable.depth); tmp.dst.bo = dst_bo; tmp.dst.x = tmp.dst.y = 0; + tmp.damage = NULL; sna_render_composite_redirect_init(&tmp); if (too_large(tmp.dst.width, tmp.dst.height) || diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index 530251c7..459b428f 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -2466,6 +2466,7 @@ fallback_blt: tmp.dst.height = dst->drawable.height; tmp.dst.x = tmp.dst.y = 0; tmp.dst.bo = dst_bo; + tmp.damage = NULL; sna_render_composite_redirect_init(&tmp); if (too_large(tmp.dst.width, tmp.dst.height)) { diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index 487d903e..7246ed68 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -2781,6 +2781,7 @@ fallback_blt: tmp.dst.height = dst->drawable.height; tmp.dst.x = tmp.dst.y = 0; tmp.dst.bo = dst_bo; + tmp.damage = NULL; sna_render_composite_redirect_init(&tmp); if (too_large(tmp.dst.width, tmp.dst.height)) { diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index d337b300..59372f86 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -3259,6 +3259,7 @@ fallback_blt: tmp.dst.height = dst->drawable.height; tmp.dst.bo = dst_bo; tmp.dst.x = tmp.dst.y = 0; + tmp.damage = NULL; sna_render_composite_redirect_init(&tmp); if (too_large(tmp.dst.width, tmp.dst.height)) { diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c index 2e9948d7..8a5d95cf 100644 --- a/src/sna/gen7_render.c +++ b/src/sna/gen7_render.c @@ -3243,6 +3243,7 @@ fallback_blt: tmp.dst.height = dst->drawable.height; tmp.dst.bo = dst_bo; tmp.dst.x = tmp.dst.y = 0; + tmp.damage = NULL; sna_render_composite_redirect_init(&tmp); if (too_large(tmp.dst.width, tmp.dst.height)) { -- cgit v1.2.3