diff options
| author | Tomi Valkeinen <[email protected]> | 2017-05-16 12:25:45 +0000 |
|---|---|---|
| committer | Tomi Valkeinen <[email protected]> | 2017-06-02 08:09:33 +0000 |
| commit | 2add8d1310eb5b1094e02a7261b6e35df5e65bf3 (patch) | |
| tree | e608834e38e325f79e697b4908fb99cfea055ebb | |
| parent | drm/omap: fix YUV422 rotation with TILER (diff) | |
| download | kernel-2add8d1310eb5b1094e02a7261b6e35df5e65bf3.tar.gz kernel-2add8d1310eb5b1094e02a7261b6e35df5e65bf3.zip | |
drm/omap: fix YUV422 90/270 rotation with mirroring
When rotating 90/270 + mirroring with YUV422, the end result will have
adjacent pixels swapped. The problem is that
dispc_ovl_set_rotation_attrs() has wrong rotation values for these
cases.
Signed-off-by: Tomi Valkeinen <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dispc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c index 18e9dff2f1b2..fd7504b37e3b 100644 --- a/drivers/gpu/drm/omapdrm/dss/dispc.c +++ b/drivers/gpu/drm/omapdrm/dss/dispc.c @@ -1819,13 +1819,13 @@ static void dispc_ovl_set_rotation_attrs(enum omap_plane_id plane, u8 rotation, vidrot = 2; break; case DRM_MODE_ROTATE_90: - vidrot = 3; + vidrot = 1; break; case DRM_MODE_ROTATE_180: vidrot = 0; break; case DRM_MODE_ROTATE_270: - vidrot = 1; + vidrot = 3; break; } } else { |
