From 193d58b0ea9de3e326017e50b88e2f3726854506 Mon Sep 17 00:00:00 2001 From: Alex Deucher <alex@botch2.com> Date: Wed, 25 Jul 2007 01:27:58 -0400 Subject: RADEON: fix randr on r4xx Seems the way we parse the ATOM connector table results in reversed connectors. --- src/radeon_bios.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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", -- cgit v1.2.3