[PATCH 4/4] xf86: reimplement XF86SCRNINFO macro using new functions.

Keith Packard keithp at keithp.com
Tue May 15 08:18:37 PDT 2012


On Mon, 14 May 2012 13:00:23 +0100, Dave Airlie <airlied at gmail.com> wrote:

> -
> -    /* 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?

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120515/9199bc77/attachment.pgp>


More information about the xorg-devel mailing list