From 86558cc622b516b568cc26efdf9b64d4b660f50f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 16 Dec 2006 21:09:31 -0800 Subject: [PATCH] Prefer earliest CRTC when mapping to outputs. For some reason, the code was preferring the last possible output when mapping outputs to crtcs. Use the earlier CRTC instead to make the i830 driver consistent with BIOS usage. --- src/i830_xf86Crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i830_xf86Crtc.c b/src/i830_xf86Crtc.c index 76d6d039..51e6f1c7 100644 --- a/src/i830_xf86Crtc.c +++ b/src/i830_xf86Crtc.c @@ -359,7 +359,7 @@ xf86PickCrtcs (ScrnInfoPtr pScrn, crtcs[n] = crtc; memcpy (crtcs, best_crtcs, n * sizeof (xf86CrtcPtr)); score = my_score + xf86PickCrtcs (pScrn, crtcs, modes, n+1, width, height); - if (score >= best_score) + if (score > best_score) { best_crtc = crtc; best_score = score;