diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-08 17:13:39 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-08 17:13:39 +0000 |
commit | a087430ad99c06e79249d2cdd019cb8bf7f955d3 (patch) | |
tree | b2326ab93cb6135007e4b78c38e1b760486274af | |
parent | 61226cd41faf320f79ee4bd72dc77163079da853 (diff) |
sna/gen6: Replace the memset with explict initialisation
The profiles told me to kill it...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/gen6_render.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 764b6293..8a8cdd8b 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -3705,8 +3705,6 @@ gen6_render_fill_boxes(struct sna *sna, __FUNCTION__, pixel, n, box[0].x1, box[0].y1, box[0].x2, box[0].y2)); - memset(&tmp, 0, sizeof(tmp)); - tmp.op = op; tmp.dst.pixmap = dst; @@ -3714,16 +3712,21 @@ gen6_render_fill_boxes(struct sna *sna, tmp.dst.height = dst->drawable.height; tmp.dst.format = format; tmp.dst.bo = dst_bo; + tmp.dst.x = tmp.dst.y = 0; tmp.src.bo = sna_render_get_solid(sna, pixel); tmp.src.filter = SAMPLER_FILTER_NEAREST; tmp.src.repeat = SAMPLER_EXTEND_REPEAT; tmp.mask.bo = NULL; + tmp.mask.filter = SAMPLER_FILTER_NEAREST; + tmp.mask.repeat = SAMPLER_EXTEND_NONE; tmp.is_affine = TRUE; tmp.floats_per_vertex = 3; tmp.floats_per_rect = 9; + tmp.has_component_alpha = FALSE; + tmp.need_magic_ca_pass = FALSE; tmp.u.gen6.wm_kernel = GEN6_WM_KERNEL_NOMASK; tmp.u.gen6.nr_surfaces = 2; |