summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Deucher <alex@botch2.com>2007-07-25 01:27:58 -0400
committerAlex Deucher <alex@botch2.com>2007-07-25 01:27:58 -0400
commit193d58b0ea9de3e326017e50b88e2f3726854506 (patch)
tree5a88489502a5357f006a6049892fa42445885ad5 /src
parent262e32bd9ea4123b116362b33b5798753b2568fe (diff)
RADEON: fix randr on r4xx
Seems the way we parse the ATOM connector table results in reversed connectors.
Diffstat (limited to 'src')
-rw-r--r--src/radeon_bios.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/radeon_bios.c b/src/radeon_bios.c
index 10ef99f6..26019ba4 100644
--- a/src/radeon_bios.c
+++ b/src/radeon_bios.c
@@ -145,6 +145,7 @@ Bool RADEONGetConnectorInfoFromBIOS (ScrnInfoPtr pScrn)
{
RADEONInfoPtr info = RADEONPTR (pScrn);
int i = 0, j, tmp, tmp0=0, tmp1=0;
+ RADEONBIOSConnector tempConnector;
if(!info->VBIOS) return FALSE;
@@ -225,6 +226,12 @@ Bool RADEONGetConnectorInfoFromBIOS (ScrnInfoPtr pScrn)
}
}
}
+
+ /* R4xx seem to get the connector table backwards */
+ tempConnector = info->BiosConnector[0];
+ info->BiosConnector[0] = info->BiosConnector[1];
+ info->BiosConnector[1] = tempConnector;
+
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Bios Connector table: \n");
for (i=0; i<2; i++) {
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Port%d: DDCType-%d, DACType-%d, TMDSType-%d, ConnectorType-%d\n",