]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/radeon: fix interlaced modes on DCE8
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Mar 2015 22:00:43 +0000 (17:00 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 11:13:59 +0000 (13:13 +0200)
commit 77ae5f4b48a0445426c9c1ef7c0f28b717e35d55 upstream.

Need to double the viewport height.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/radeon/atombios_crtc.c

index ba8742ab85ee390baa1cffa45e14f56f6c136590..65344d65ff91b80cda91b7d7c91ba0d4d433926f 100644 (file)
@@ -1278,6 +1278,9 @@ static int dce4_crtc_do_set_base(struct drm_crtc *crtc,
               (x << 16) | y);
        viewport_w = crtc->mode.hdisplay;
        viewport_h = (crtc->mode.vdisplay + 1) & ~1;
+       if ((rdev->family >= CHIP_BONAIRE) &&
+           (crtc->mode.flags & DRM_MODE_FLAG_INTERLACE))
+               viewport_h *= 2;
        WREG32(EVERGREEN_VIEWPORT_SIZE + radeon_crtc->crtc_offset,
               (viewport_w << 16) | viewport_h);