diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-21 02:00:44 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-21 16:11:15 +0100 |
commit | c2040fb8e62076d87f7a5b407505ee3f3482945e (patch) | |
tree | bf8578860a68c898e91eec6ce8d384212e6a67f4 /src/sna/gen6_render.c | |
parent | 7e7759db4c1dbf8b782fab9b9ca95cfa1db6cf59 (diff) |
sna: Remove the memset(0) of the fill op
The backends are all expected to initialise the state required.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r-- | src/sna/gen6_render.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index fc2fc471..838819d1 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -2793,6 +2793,7 @@ gen6_render_fill(struct sna *sna, uint8_t alu, op->base.dst.height = dst->drawable.height; op->base.dst.format = sna_format_for_depth(dst->drawable.depth); op->base.dst.bo = dst_bo; + op->base.dst.x = op->base.dst.y = 0; op->base.src.bo = sna_render_get_solid(sna, @@ -2801,6 +2802,10 @@ gen6_render_fill(struct sna *sna, uint8_t alu, op->base.src.filter = SAMPLER_FILTER_NEAREST; op->base.src.repeat = SAMPLER_EXTEND_REPEAT; + op->base.mask.bo = NULL; + op->base.mask.filter = SAMPLER_FILTER_NEAREST; + op->base.mask.repeat = SAMPLER_EXTEND_NONE; + op->base.is_affine = TRUE; op->base.floats_per_vertex = 3; op->base.floats_per_rect = 9; |