drm/radeon: fix interlaced modes
Subsystems (2)
PATCH 1/1 drm/radeon: fix interlaced modes
The viewport needs the frame size, not the field size.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/atombios_crtc.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/radeon/atombios_crtc.c +6 -0
@@ -1405,6 +1405,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 ; +/* viewport is frame size, not field */ +if (crtc->mode.flags &DRM_MODE_FLAG_INTERLACE ) + viewport_h *=2 ;WREG32 (EVERGREEN_VIEWPORT_SIZE + radeon_crtc->crtc_offset, (viewport_w <<16 ) | viewport_h);
@@ -1605,6 +1608,9 @@ static int avivo_crtc_do_set_base(struct drm_crtc *crtc, (x << 16) | y); viewport_w = crtc->mode.hdisplay; viewport_h = (crtc->mode.vdisplay +1 ) & ~1 ; +/* viewport is frame size, not field */ +if (crtc->mode.flags &DRM_MODE_FLAG_INTERLACE ) + viewport_h *=2 ;WREG32 (AVIVO_D1MODE_VIEWPORT_SIZE + radeon_crtc->crtc_offset, (viewport_w <<16 ) | viewport_h);
Signature · 6 lines
1.8.3.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel