[PATCH 4/4] xf86: reimplement XF86SCRNINFO macro using new functions.
Dave Airlie
airlied at gmail.com
Tue May 15 09:57:31 PDT 2012
>> -
>> - /* This can get called before the ScrnInfoRec is installed so we
>> - can't rely on getting it with XF86SCRNINFO() */
>> int scrnIndex = pmap->pScreen->myNum;
>> ScrnInfoPtr scrninfp = xf86ScreenToScrn(pmap->pScreen);
>> vgaHWPtr hwp = VGAHWPTR(scrninfp);
>
> Your new macro can handle the case where the private hasn't been set yet?
Yeah it just does the look ups in the global arrays, so there should never
be case where we need to worry about this, or at least it doesn't make us
worry about it more than we do now.
Dave.
More information about the xorg-devel
mailing list