]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Merge remote branch 'linus' into drm-intel-fixes
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Sep 2010 00:02:18 +0000 (01:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Sep 2010 00:02:18 +0000 (01:02 +0100)
drivers/gpu/drm/i915/intel_display.c

index 19daead5b525d5d3d653e156ce2bfe532479bd9e..b5bf51a4502dc4f4e2ca4d2914673004c931c3b5 100644 (file)
@@ -2463,11 +2463,19 @@ static bool intel_crtc_mode_fixup(struct drm_crtc *crtc,
                                  struct drm_display_mode *adjusted_mode)
 {
        struct drm_device *dev = crtc->dev;
+
        if (HAS_PCH_SPLIT(dev)) {
                /* FDI link clock is fixed at 2.7G */
                if (mode->clock * 3 > IRONLAKE_FDI_FREQ * 4)
                        return false;
        }
+
+       /* XXX some encoders set the crtcinfo, others don't.
+        * Obviously we need some form of conflict resolution here...
+        */
+       if (adjusted_mode->crtc_htotal == 0)
+               drm_mode_set_crtcinfo(adjusted_mode, 0);
+
        return true;
 }