drm/nv50: fill in crtc mode struct members from crtc_mode_fixup
authorBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jan 2014 00:13:23 +0000 (10:13 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 29 Jan 2014 22:18:26 +0000 (08:18 +1000)
The DRM uses the adjusted mode to calculate constants for vblank
timestamping.  Our encoder mode_fixup (usually) replaces this data
with our backend mode information, which doesn't have the needed
data filled in already.

Reported-by: Mario Kleiner mario.kleiner.de@gmail.com
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c

index 6ae7a697866e1ccca6e3fc4aa481def0e1e82992..2dccafc6e9db573814e43acff007c36c2c0da97b 100644 (file)
@@ -1035,6 +1035,7 @@ static bool
 nv50_crtc_mode_fixup(struct drm_crtc *crtc, const struct drm_display_mode *mode,
                     struct drm_display_mode *adjusted_mode)
 {
+       drm_mode_set_crtcinfo(adjusted_mode, CRTC_INTERLACE_HALVE_V);
        return true;
 }