summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-10-09 19:41:10 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-10-09 19:41:10 +0100
commitd73f5b5bb1a81421f1fdc3ac3b460a8ad90be0ad (patch)
treeccaac1af0122db03e184e35e4009b2a18499f1e8
parentae6ae91baa0574a7a23ab76afac5e2d827c49c20 (diff)
sna/gen6+: Initialize the damage for fill-boxes
In case we need to redirect the rendering for a large render target, we need to initialize the damage pointer. Reported-by: Clemens Eisserer <linuxhippy@gmail.com> Bugzilla: ttps://bugs.freedesktop.org/show_bug.cgi?id=55812 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen3_render.c1
-rw-r--r--src/sna/gen6_render.c1
-rw-r--r--src/sna/gen7_render.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index 4c4271e7..7c303f41 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -4397,6 +4397,7 @@ gen3_render_fill_boxes(struct sna *sna,
tmp.dst.height = dst->drawable.height;
tmp.dst.format = format;
tmp.dst.bo = dst_bo;
+ tmp.damage = NULL;
tmp.floats_per_vertex = 2;
tmp.floats_per_rect = 6;
tmp.rb_reversed = 0;
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c
index 4990062f..fd7f2958 100644
--- a/src/sna/gen6_render.c
+++ b/src/sna/gen6_render.c
@@ -3713,6 +3713,7 @@ gen6_render_fill_boxes(struct sna *sna,
tmp.dst.format = format;
tmp.dst.bo = dst_bo;
tmp.dst.x = tmp.dst.y = 0;
+ tmp.damage = NULL;
sna_render_composite_redirect_init(&tmp);
if (too_large(dst->drawable.width, dst->drawable.height)) {
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 376556af..37d03590 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -3797,6 +3797,7 @@ gen7_render_fill_boxes(struct sna *sna,
tmp.dst.format = format;
tmp.dst.bo = dst_bo;
tmp.dst.x = tmp.dst.y = 0;
+ tmp.damage = NULL;
sna_render_composite_redirect_init(&tmp);
if (too_large(dst->drawable.width, dst->drawable.height)) {