drm/kms: Init the CRTC info fields for modes forced from the command line.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 7 Nov 2009 15:27:32 +0000 (16:27 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 10 Nov 2009 03:41:40 +0000 (13:41 +1000)
Fixes fdo bug 24710.

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c

index 1fe4e1d344fdb1e6f21910d87b4795cd5986f933..bbfd110a71684079a2ff5fcd0afc791e23a2a365 100644 (file)
@@ -331,6 +331,7 @@ create_mode:
                            cmdline_mode->refresh_specified ? cmdline_mode->refresh : 60,
                            cmdline_mode->rb, cmdline_mode->interlace,
                            cmdline_mode->margins);
+       drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V);
        list_add(&mode->head, &connector->modes);
        return mode;
 }