diff options
author | Keith Packard <keithp@mandolin.keithp.com> | 2006-12-16 21:09:31 -0800 |
---|---|---|
committer | Keith Packard <keithp@mandolin.keithp.com> | 2006-12-16 21:09:31 -0800 |
commit | 86558cc622b516b568cc26efdf9b64d4b660f50f (patch) | |
tree | b15ca675d7cb776a8a66ea4a2979c7fa38bd9c43 | |
parent | 8e6ab99b3195325f9fe5432725fe328591c0c7e2 (diff) |
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.
-rw-r--r-- | src/i830_xf86Crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |