summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-07-13 09:49:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-07-13 17:43:13 +0100
commitb929717c89352d4b47dc2b9ce58e26fbbf327201 (patch)
tree9a99a347d1c12feca12e91bf9869b9948e1f559b
parentfbdbfaf38d4da5204750d91cf5a3f43307a6ac33 (diff)
sna/gen3: Tune emit_spans_primitive_constant
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen3_render.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index 7665cdcb..e9e1cefc 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -2410,16 +2410,10 @@ gen3_emit_composite_spans_primitive_constant(struct sna *sna,
sna->render.vertex_used += 9;
v[0] = op->base.dst.x + box->x2;
- v[1] = op->base.dst.y + box->y2;
- v[2] = opacity;
-
- v[3] = op->base.dst.x + box->x1;
- v[4] = v[1];
- v[5] = opacity;
-
- v[6] = v[3];
+ v[6] = v[3] = op->base.dst.x + box->x1;
+ v[4] = v[1] = op->base.dst.y + box->y2;
v[7] = op->base.dst.y + box->y1;
- v[8] = opacity;
+ v[8] = v[5] = v[2] = opacity;
}
static void