diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2018-05-25 13:02:55 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-05-29 02:12:49 +0000 |
commit | fe2a54f597f956361958d16c7d6d6bf6e0461f70 (patch) | |
tree | 7a3857d2d47bcc00e576918f59e82a7c8a69b314 | |
parent | 4ab047e66f857d22e21d6e9ede7b365793a905d6 (diff) | |
download | linux-exynos-fe2a54f597f956361958d16c7d6d6bf6e0461f70.tar.gz linux-exynos-fe2a54f597f956361958d16c7d6d6bf6e0461f70.tar.bz2 linux-exynos-fe2a54f597f956361958d16c7d6d6bf6e0461f70.zip |
drm/exynos: rotator: Fix DRM_MODE_REFLECT_{X,Y} interpretation
Horizontal (DRM_MODE_REFLECT_Y) and vertical (DMR_MODE_REFLECT_Y) flip
were swapped in Rotator driver. Fix this by swapping code for interpreting
them.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ic6aef7b463ebb89fd217092f129427303102641a
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_rotator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c index 1a76dd3d52e1..a820a68429b9 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c +++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c @@ -168,9 +168,9 @@ static void rotator_dst_set_transf(struct rot_context *rot, val &= ~ROT_CONTROL_FLIP_MASK; if (rotation & DRM_MODE_REFLECT_X) - val |= ROT_CONTROL_FLIP_HORIZONTAL; - if (rotation & DRM_MODE_REFLECT_Y) val |= ROT_CONTROL_FLIP_VERTICAL; + if (rotation & DRM_MODE_REFLECT_Y) + val |= ROT_CONTROL_FLIP_HORIZONTAL; val &= ~ROT_CONTROL_ROT_MASK; |