diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-13 15:47:27 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-13 17:45:05 +0000 |
commit | 6dfe28f978b59ab2fc44cdd8ddf3743d6507588b (patch) | |
tree | fa510e59a930ad0be39b69c6ff9984e01a92e664 /src/sna/gen6_render.c | |
parent | c751242e245eb168b92616bdcea3421be4e420bc (diff) |
sna/gen6: Remove the double application of the render offset
Cut'n'paste error from an older generation.
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 | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 8a8cdd8b..fde07766 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -1466,26 +1466,17 @@ gen6_emit_composite_primitive(struct sna *sna, const struct sna_composite_rectangles *r) { gen6_emit_composite_vertex(sna, op, - r->src.x + r->width, - r->src.y + r->height, - r->mask.x + r->width, - r->mask.y + r->height, - op->dst.x + r->dst.x + r->width, - op->dst.y + r->dst.y + r->height); + r->src.x + r->width, r->src.y + r->height, + r->mask.x + r->width, r->mask.y + r->height, + r->dst.x + r->width, r->dst.y + r->height); gen6_emit_composite_vertex(sna, op, - r->src.x, - r->src.y + r->height, - r->mask.x, - r->mask.y + r->height, - op->dst.x + r->dst.x, - op->dst.y + r->dst.y + r->height); + r->src.x, r->src.y + r->height, + r->mask.x, r->mask.y + r->height, + r->dst.x, r->dst.y + r->height); gen6_emit_composite_vertex(sna, op, - r->src.x, - r->src.y, - r->mask.x, - r->mask.y, - op->dst.x + r->dst.x, - op->dst.y + r->dst.y); + r->src.x, r->src.y, + r->mask.x, r->mask.y, + r->dst.x, r->dst.y); } static void gen6_emit_vertex_buffer(struct sna *sna, |