diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2007-03-28 14:10:41 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2007-03-28 14:10:41 -0700 |
commit | 8f7769aadf175e8298f27387428214d6de49e6a5 (patch) | |
tree | aed889f41ea4a36883d718b2d78be9876cb558c7 | |
parent | 2d8d5bd597d760968b683d41ced6a0a76518ec26 (diff) |
G80: Use xf86CrtcScreenInit and xf86SetDesiredModes.
-rw-r--r-- | src/g80_driver.c | 28 | ||||
-rw-r--r-- | src/g80_type.h | 1 |
2 files changed, 3 insertions, 26 deletions
diff --git a/src/g80_driver.c b/src/g80_driver.c index 4c72bbb..2a5fceb 100644 --- a/src/g80_driver.c +++ b/src/g80_driver.c @@ -408,8 +408,7 @@ AcquireDisplay(ScrnInfoPtr pScrn) return FALSE; G80DispDPMSSet(pScrn, DPMSModeOn, 0); #endif - ErrorF("TODO: Set the current config, rather than using xf86SetSingleMode\n"); - xf86SetSingleMode(pScrn, pScrn->currentMode, RR_Rotate_0); + xf86SetDesiredModes(pScrn); return TRUE; } @@ -468,7 +467,6 @@ G80CloseScreen(int scrnIndex, ScreenPtr pScreen) pScrn->vtSema = FALSE; pScreen->CloseScreen = pNv->CloseScreen; pScreen->BlockHandler = pNv->BlockHandler; - pScreen->CreateScreenResources = pNv->CreateScreenResources; return (*pScreen->CloseScreen)(scrnIndex, pScreen); } @@ -501,21 +499,6 @@ G80SaveScreen(ScreenPtr pScreen, int mode) return FALSE; } -static Bool -G80CreateScreenResources(ScreenPtr pScreen) -{ - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; - G80Ptr pNv = G80PTR(pScrn); - - pScreen->CreateScreenResources = pNv->CreateScreenResources; - if(!(*pScreen->CreateScreenResources)(pScreen)) - return FALSE; - - if(!xf86RandR12CreateScreenResources(pScreen)) - return FALSE; - return TRUE; - } - static void G80InitHW(ScrnInfoPtr pScrn) { @@ -850,19 +833,14 @@ G80ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) pScreen->SaveScreen = G80SaveScreen; - pNv->CreateScreenResources = pScreen->CreateScreenResources; - pScreen->CreateScreenResources = G80CreateScreenResources; - pNv->CloseScreen = pScreen->CloseScreen; pScreen->CloseScreen = G80CloseScreen; pNv->BlockHandler = pScreen->BlockHandler; pScreen->BlockHandler = G80BlockHandler; - xf86DrvMsg(pScrn->scrnIndex, X_INFO, "RandR 1.2 enabled. Please ignore the following RandR disabled message.\n"); - xf86DisableRandR(); - xf86RandR12Init(pScreen); - xf86RandR12SetRotations(pScreen, RR_Rotate_0); + if(!xf86CrtcScreenInit(pScreen)) + return FALSE; return TRUE; } diff --git a/src/g80_type.h b/src/g80_type.h index 6c031c4..a8788bc 100644 --- a/src/g80_type.h +++ b/src/g80_type.h @@ -64,7 +64,6 @@ typedef struct G80Rec { CARD32 * dmaBase; void (*DMAKickoffCallback)(ScrnInfoPtr); - CreateScreenResourcesProcPtr CreateScreenResources; CloseScreenProcPtr CloseScreen; ScreenBlockHandlerProcPtr BlockHandler; } G80Rec, *G80Ptr; |