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.
This commit is contained in:
Keith Packard 2006-12-16 21:09:31 -08:00
parent 8e6ab99b31
commit 86558cc622
1 changed files with 1 additions and 1 deletions

View File

@ -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;