diff options
Diffstat (limited to 'src/legacy/i810')
-rw-r--r-- | src/legacy/i810/i810_accel.c | 6 | ||||
-rw-r--r-- | src/legacy/i810/i810_cursor.c | 6 | ||||
-rw-r--r-- | src/legacy/i810/i810_dga.c | 2 | ||||
-rw-r--r-- | src/legacy/i810/i810_dri.c | 18 | ||||
-rw-r--r-- | src/legacy/i810/i810_driver.c | 6 | ||||
-rw-r--r-- | src/legacy/i810/i810_hwmc.c | 2 | ||||
-rw-r--r-- | src/legacy/i810/i810_video.c | 6 |
7 files changed, 23 insertions, 23 deletions
diff --git a/src/legacy/i810/i810_accel.c b/src/legacy/i810/i810_accel.c index 6b57dbb1..7120b4ba 100644 --- a/src/legacy/i810/i810_accel.c +++ b/src/legacy/i810/i810_accel.c @@ -69,7 +69,7 @@ Bool I810AccelInit(ScreenPtr pScreen) { XAAInfoRecPtr infoPtr; - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); if (I810_DEBUG & DEBUG_VERBOSE_ACCEL) @@ -215,8 +215,8 @@ I810WaitLpRing(ScrnInfoPtr pScrn, int n, int timeout_millis) ErrorF("space: %d wanted %d\n", ring->space, n); #ifdef HAVE_DRI1 if (pI810->directRenderingEnabled) { - DRIUnlock(screenInfo.screens[pScrn->scrnIndex]); - DRICloseScreen(screenInfo.screens[pScrn->scrnIndex]); + DRIUnlock(xf86ScrnToScreen(pScrn)); + DRICloseScreen(xf86ScrnToScreen(pScrn)); } #endif pI810->AccelInfoRec = NULL; /* Stops recursive behavior */ diff --git a/src/legacy/i810/i810_cursor.c b/src/legacy/i810/i810_cursor.c index 88829cbd..580fe4b0 100644 --- a/src/legacy/i810/i810_cursor.c +++ b/src/legacy/i810/i810_cursor.c @@ -63,7 +63,7 @@ I810CursorInit(ScreenPtr pScreen) I810Ptr pI810; xf86CursorInfoPtr infoPtr; - pScrn = xf86Screens[pScreen->myNum]; + pScrn = xf86ScreenToScrn(pScreen); pI810 = I810PTR(pScrn); pI810->CursorInfoRec = infoPtr = xf86CreateCursorInfoRec(); if (!infoPtr) @@ -101,7 +101,7 @@ I810CursorInit(ScreenPtr pScreen) static Bool I810UseHWCursorARGB (ScreenPtr pScreen, CursorPtr pCurs) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); if (!pI810->CursorARGBPhysical) @@ -144,7 +144,7 @@ static void I810LoadCursorARGB (ScrnInfoPtr pScrn, CursorPtr pCurs) static Bool I810UseHWCursor(ScreenPtr pScreen, CursorPtr pCurs) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); if (!pI810->CursorPhysical) diff --git a/src/legacy/i810/i810_dga.c b/src/legacy/i810/i810_dga.c index 44181c65..baf0011d 100644 --- a/src/legacy/i810/i810_dga.c +++ b/src/legacy/i810/i810_dga.c @@ -70,7 +70,7 @@ DGAFunctionRec I810DGAFuncs = { Bool I810DGAInit(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); DGAModePtr modes = NULL, newmodes = NULL, currentMode; DisplayModePtr pMode, firstMode; diff --git a/src/legacy/i810/i810_dri.c b/src/legacy/i810/i810_dri.c index 91290693..2f02dd92 100644 --- a/src/legacy/i810/i810_dri.c +++ b/src/legacy/i810/i810_dri.c @@ -155,7 +155,7 @@ mylog2(unsigned int n) Bool I810DRIScreenInit(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); DRIInfoPtr pDRIInfo; I810DRIPtr pI810DRI; @@ -891,7 +891,7 @@ I810DRIScreenInit(ScreenPtr pScreen) void I810DRICloseScreen(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); I810DRIPtr pI810DRI = (I810DRIPtr) pI810->pDRIInfo->devPrivate; @@ -956,7 +956,7 @@ Bool I810DRIFinishScreenInit(ScreenPtr pScreen) { I810SAREARec *sPriv = (I810SAREARec *) DRIGetSAREAPrivate(pScreen); - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr info = I810PTR(pScrn); memset(sPriv, 0, sizeof(sPriv)); @@ -976,7 +976,7 @@ I810DRISwapContext(ScreenPtr pScreen, DRISyncType syncType, DRIContextType oldContextType, void *oldContext, DRIContextType newContextType, void *newContext) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); if (syncType == DRI_3D_SYNC && @@ -1002,7 +1002,7 @@ static void I810DRIInitBuffers(WindowPtr pWin, RegionPtr prgn, CARD32 index) { ScreenPtr pScreen = pWin->drawable.pScreen; - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); BoxPtr pbox = REGION_RECTS(prgn); int nbox = REGION_NUM_RECTS(prgn); @@ -1047,7 +1047,7 @@ I810DRIMoveBuffers(WindowPtr pParent, DDXPointRec ptOldOrg, RegionPtr prgnSrc, CARD32 index) { ScreenPtr pScreen = pParent->drawable.pScreen; - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); BoxPtr pboxTmp, pboxNext, pboxBase; DDXPointPtr pptTmp, pptNew2 = NULL; @@ -1249,7 +1249,7 @@ static void I810DRIRefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox) static void I810EnablePageFlip(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); I810SAREAPtr pSAREAPriv = DRIGetSAREAPrivate(pScreen); int cpp=2; @@ -1298,7 +1298,7 @@ static void I810DRITransitionMultiToSingle3d(ScreenPtr pScreen) static void I810DRITransitionTo3d(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); I810EnablePageFlip(pScreen); @@ -1307,7 +1307,7 @@ static void I810DRITransitionTo3d(ScreenPtr pScreen) static void I810DRITransitionTo2d(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); I810SAREAPtr pSAREAPriv = DRIGetSAREAPrivate(pScreen); diff --git a/src/legacy/i810/i810_driver.c b/src/legacy/i810/i810_driver.c index 60053d8f..09d52c5a 100644 --- a/src/legacy/i810/i810_driver.c +++ b/src/legacy/i810/i810_driver.c @@ -1353,7 +1353,7 @@ I810ModeInit(ScrnInfoPtr scrn, DisplayModePtr mode) #ifdef HAVE_DRI1 if (pI810->directRenderingEnabled) { - DRILock(screenInfo.screens[scrn->scrnIndex], 0); + DRILock(xf86ScrnToScreen(scrn), 0); pI810->LockHeld = 1; } #endif @@ -1362,7 +1362,7 @@ I810ModeInit(ScrnInfoPtr scrn, DisplayModePtr mode) #ifdef HAVE_DRI1 if (pI810->directRenderingEnabled) { - DRIUnlock(screenInfo.screens[scrn->scrnIndex]); + DRIUnlock(xf86ScrnToScreen(scrn)); pI810->LockHeld = 0; } #endif @@ -1577,7 +1577,7 @@ I810ScreenInit(int scrnIndex, ScreenPtr screen, int argc, char **argv) I810Ptr pI810; VisualPtr visual; - scrn = xf86Screens[screen->myNum]; + scrn = xf86ScreenToScrn(screen); pI810 = I810PTR(scrn); hwp = VGAHWPTR(scrn); diff --git a/src/legacy/i810/i810_hwmc.c b/src/legacy/i810/i810_hwmc.c index ba50e1ef..c7100e09 100644 --- a/src/legacy/i810/i810_hwmc.c +++ b/src/legacy/i810/i810_hwmc.c @@ -197,7 +197,7 @@ static XF86MCAdaptorPtr ppAdapt[1] = **************************************************************************/ void I810InitMC(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); I810Ptr pI810 = I810PTR(pScrn); int i; diff --git a/src/legacy/i810/i810_video.c b/src/legacy/i810/i810_video.c index 5a568a67..2999ee0b 100644 --- a/src/legacy/i810/i810_video.c +++ b/src/legacy/i810/i810_video.c @@ -154,7 +154,7 @@ static Atom xvBrightness, xvContrast, xvColorKey; void I810InitVideo(ScreenPtr screen) { - ScrnInfoPtr pScrn = xf86Screens[screen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(screen); XF86VideoAdaptorPtr *adaptors, *newAdaptors = NULL; XF86VideoAdaptorPtr newAdaptor = NULL; int num_adaptors; @@ -377,7 +377,7 @@ static void I810ResetVideo(ScrnInfoPtr pScrn) static XF86VideoAdaptorPtr I810SetupImageVideo(ScreenPtr screen) { - ScrnInfoPtr pScrn = xf86Screens[screen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(screen); I810Ptr pI810 = I810PTR(pScrn); XF86VideoAdaptorPtr adapt; I810PortPrivPtr pPriv; @@ -941,7 +941,7 @@ I810AllocateMemory( xf86FreeOffscreenLinear(linear); } - screen = screenInfo.screens[pScrn->scrnIndex]; + screen = xf86ScrnToScreen(pScrn); new_linear = xf86AllocateOffscreenLinear(screen, size, 4, NULL, NULL, NULL); |