exynos: fix coordinate computation in g2d_copy
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Sun, 1 Jun 2014 16:04:04 +0000 (18:04 +0200)
committerRob Clark <robclark@freedesktop.org>
Fri, 20 Jun 2014 19:53:01 +0000 (15:53 -0400)
The right-bottom register isn't set correctly.
Looks like a copy-and-paste error.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
exynos/exynos_fimg2d.c

index 0b14618..a565910 100644 (file)
@@ -382,7 +382,7 @@ int g2d_copy(struct g2d_context *ctx, struct g2d_image *src,
        g2d_add_cmd(ctx, DST_LEFT_TOP_REG, pt.val);
        pt.val = 0;
        pt.data.x = dst_x + w;
-       pt.data.y = dst_x + h;
+       pt.data.y = dst_y + h;
        g2d_add_cmd(ctx, DST_RIGHT_BOTTOM_REG, pt.val);
 
        rop4.val = 0;