From 5d8ded0dd671fbcbd212e06afbea88a7a56a8f0d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 13 Mar 2014 08:51:29 +0000 Subject: sna: Nullify extra fill.ops I forgot that the initial memset(&fill, 0, sizeof(fill)) was no longer performed and we rely on explicit initialisation during the setup, so add the missing fields. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76088 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 + src/sna/gen8_render.c | 1 + 7 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c index 99e39128..2ebfde67 100644 --- a/src/sna/gen2_render.c +++ b/src/sna/gen2_render.c @@ -2985,6 +2985,7 @@ gen2_render_fill(struct sna *sna, uint8_t alu, tmp->blt = gen2_render_fill_op_blt; tmp->box = gen2_render_fill_op_box; tmp->boxes = gen2_render_fill_op_boxes; + tmp->points = NULL; tmp->done = gen2_render_fill_op_done; gen2_emit_fill_state(sna, &tmp->base); diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c index 5601f4c5..69f46684 100644 --- a/src/sna/gen3_render.c +++ b/src/sna/gen3_render.c @@ -6084,6 +6084,7 @@ gen3_render_fill(struct sna *sna, uint8_t alu, tmp->blt = gen3_render_fill_op_blt; tmp->box = gen3_render_fill_op_box; tmp->boxes = gen3_render_fill_op_boxes; + tmp->points = NULL; tmp->done = gen3_render_fill_op_done; gen3_align_vertex(sna, &tmp->base); diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index ba9c9bc1..f3773153 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -2852,6 +2852,7 @@ gen4_render_fill(struct sna *sna, uint8_t alu, op->blt = gen4_render_fill_op_blt; op->box = gen4_render_fill_op_box; op->boxes = gen4_render_fill_op_boxes; + op->points = NULL; op->done = gen4_render_fill_op_done; return true; } diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index d5856ea2..e4db739d 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -2917,6 +2917,7 @@ gen5_render_fill(struct sna *sna, uint8_t alu, op->blt = gen5_render_fill_op_blt; op->box = gen5_render_fill_op_box; op->boxes = gen5_render_fill_op_boxes; + op->points = NULL; op->done = gen5_render_fill_op_done; return true; } diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 6ff187ca..577d1c0b 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -3300,6 +3300,7 @@ gen6_render_fill(struct sna *sna, uint8_t alu, op->blt = gen6_render_op_fill_blt; op->box = gen6_render_op_fill_box; op->boxes = gen6_render_op_fill_boxes; + op->points = NULL; op->done = gen6_render_op_fill_done; return true; } diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c index 39a95f66..4f616615 100644 --- a/src/sna/gen7_render.c +++ b/src/sna/gen7_render.c @@ -3565,6 +3565,7 @@ gen7_render_fill(struct sna *sna, uint8_t alu, op->blt = gen7_render_fill_op_blt; op->box = gen7_render_fill_op_box; op->boxes = gen7_render_fill_op_boxes; + op->points = NULL; op->done = gen7_render_fill_op_done; return true; } diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c index 855551da..ddf376b7 100644 --- a/src/sna/gen8_render.c +++ b/src/sna/gen8_render.c @@ -3325,6 +3325,7 @@ gen8_render_fill(struct sna *sna, uint8_t alu, op->blt = gen8_render_fill_op_blt; op->box = gen8_render_fill_op_box; op->boxes = gen8_render_fill_op_boxes; + op->points = NULL; op->done = gen8_render_fill_op_done; return true; } -- cgit v1.2.3