OSDN Git Service

fixup crtcinfo on modes from userspace
authorDave Airlie <airlied@redhat.com>
Wed, 9 Jan 2008 07:11:17 +0000 (18:11 +1100)
committerDave Airlie <airlied@redhat.com>
Wed, 9 Jan 2008 07:11:17 +0000 (18:11 +1100)
linux-core/drm_crtc.c

index b49fa69..0b71b13 100644 (file)
@@ -1548,6 +1548,7 @@ int drm_mode_setcrtc(struct drm_device *dev,
 
                mode = drm_mode_create(dev);
                drm_crtc_convert_umode(mode, &crtc_req->mode);
+               drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V);
        }
 
        if (crtc_req->count_outputs == 0 && mode) {