drm/atmel-hlcdc: do not swap w/h of the crtc when a plane is rotated
authorPeter Rosin <peda@axentia.se>
Thu, 10 Jan 2019 15:10:39 +0000 (15:10 +0000)
committerBoris Brezillon <bbrezillon@kernel.org>
Sun, 27 Jan 2019 08:19:20 +0000 (09:19 +0100)
The destination crtc rectangle is independent of source plane rotation.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190110151020.30468-3-peda@axentia.se
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c

index 8b42bff7636d9a3c6dfb98fd2ae8466d69b378f3..ed6326f85a73e41ae031ca303126416be36c049f 100644 (file)
@@ -643,9 +643,6 @@ static int atmel_hlcdc_plane_atomic_check(struct drm_plane *p,
         * Swap width and size in case of 90 or 270 degrees rotation
         */
        if (drm_rotation_90_or_270(state->base.rotation)) {
-               tmp = state->crtc_w;
-               state->crtc_w = state->crtc_h;
-               state->crtc_h = tmp;
                tmp = state->src_w;
                state->src_w = state->src_h;
                state->src_h = tmp;