Fix bug in Radeon connector table parsing -- parse all entries, not just

the first. (Ben Herrenschmidt)
This commit is contained in:
Daniel Stone
2005-08-25 03:34:58 +00:00
parent 8734a5d0ba
commit 6519cc71e4

View File

@@ -216,7 +216,8 @@ Bool RADEONGetConnectorInfoFromBIOS (ScrnInfoPtr pScrn)
if ((tmp = RADEON_BIOS16(info->ROMHeaderStart + 0x50))) {
for (i = 1; i < 4; i++) {
if (!RADEON_BIOS8(tmp + i*2) && i > 1) break; /* end of table */
if (!RADEON_BIOS16(tmp + i*2))
break; /* end of table */
tmp0 = RADEON_BIOS16(tmp + i*2);
if (((tmp0 >> 12) & 0x0f) == 0) continue; /* no connector */