Since the transition to Xserver 1.12, the standard vgaHW layer

that depends on libpciaccess and is broken on macppc, so use
vgaHWSetMmioFuncs() instead of vgaHWSetStdFuncs() and unbreak
the nv driver on this platfrom.

ok matthieu@
This commit is contained in:
mpi 2012-06-21 09:52:45 +00:00
parent 8ead23f263
commit 03c84451fc

View File

@ -1785,7 +1785,11 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
}
xf86DrvMsg(pScrn->scrnIndex, from, "MMIO registers at 0x%lX\n",
(unsigned long)pNv->IOAddress);
#if defined(__powerpc__)
vgaHWSetMmioFuncs(VGAHWPTR(pScrn), (CARD8 *)pNv->IOAddress, 0);
#endif
#ifndef XSERVER_LIBPCIACCESS
if (xf86RegisterResources(pNv->pEnt->index, NULL, ResExclusive)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,