From 6dfe28f978b59ab2fc44cdd8ddf3743d6507588b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 13 Mar 2012 15:47:27 +0000 Subject: sna/gen6: Remove the double application of the render offset Cut'n'paste error from an older generation. Signed-off-by: Chris Wilson --- src/sna/gen6_render.c | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'src/sna/gen6_render.c') 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, -- cgit v1.2.3