mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-07 23:02:23 +00:00
xf86: migrate to using xf86ScreenToScrn wrapper (v2)
migrate to new helper API. This just wraps all the obvious uses of xf86Screens[pScreen->myNum], and should be fairly simple to review. v2: remove commented out lines. Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
53932b3803
commit
41151f88a6
31 changed files with 92 additions and 94 deletions
|
|
@ -315,7 +315,7 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
|
|||
int reserved_count;
|
||||
int i;
|
||||
DRIEntPrivPtr pDRIEntPriv;
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
||||
DRIContextFlags flags = 0;
|
||||
DRIContextPrivPtr pDRIContextPriv;
|
||||
|
||||
|
|
@ -615,7 +615,7 @@ DRIFinishScreenInit(ScreenPtr pScreen)
|
|||
pScreen->ClipNotify = pDRIInfo->wrap.ClipNotify;
|
||||
}
|
||||
if (pDRIInfo->wrap.AdjustFrame) {
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
||||
|
||||
pDRIPriv->wrap.AdjustFrame = pScrn->AdjustFrame;
|
||||
pScrn->AdjustFrame = pDRIInfo->wrap.AdjustFrame;
|
||||
|
|
@ -634,7 +634,7 @@ DRICloseScreen(ScreenPtr pScreen)
|
|||
DRIInfoPtr pDRIInfo;
|
||||
drm_context_t *reserved;
|
||||
int reserved_count;
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
||||
DRIEntPrivPtr pDRIEntPriv = DRI_ENT_PRIV(pScrn);
|
||||
Bool closeMaster;
|
||||
|
||||
|
|
@ -672,7 +672,7 @@ DRICloseScreen(ScreenPtr pScreen)
|
|||
pDRIPriv->wrap.ClipNotify = NULL;
|
||||
}
|
||||
if (pDRIInfo->wrap.AdjustFrame) {
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
||||
|
||||
pScrn->AdjustFrame = pDRIPriv->wrap.AdjustFrame;
|
||||
pDRIPriv->wrap.AdjustFrame = NULL;
|
||||
|
|
@ -2311,7 +2311,7 @@ DRIAdjustFrame(int scrnIndex, int x, int y, int flags)
|
|||
{
|
||||
ScreenPtr pScreen = screenInfo.screens[scrnIndex];
|
||||
DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
|
||||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
||||
int px, py;
|
||||
|
||||
if (!pDRIPriv || !pDRIPriv->pSAREA) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue