From 828c0fb8050dcbed8026365cbcb17d4d4330c268 Mon Sep 17 00:00:00 2001 From: Kevin E Martin Date: Wed, 25 Aug 2004 00:30:41 +0000 Subject: Fix i810 driver startup on Sony VAIO laptop (Bug #1084, Dave Airlie). --- src/i810_driver.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/i810_driver.c b/src/i810_driver.c index bb5d3a43..8b09243d 100644 --- a/src/i810_driver.c +++ b/src/i810_driver.c @@ -274,6 +274,7 @@ const char *I810drmSymbols[] = { "drmAgpRelease", "drmAgpUnbind", "drmAuthMagic", + "drmCommandNone", "drmCommandWrite", "drmCreateContext", "drmCtlInstHandler", @@ -1123,6 +1124,14 @@ I810PreInit(ScrnInfoPtr pScrn, int flags) xf86SetOperatingState(resVgaIo, pI810->pEnt->index, ResUnusedOpr); xf86SetOperatingState(resVgaMem, pI810->pEnt->index, ResDisableOpr); + pI810->LpRing = xalloc(sizeof(I810RingBuffer)); + if (!pI810->LpRing) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, + "Could not allocate lpring data structure.\n"); + I810FreeRec(pScrn); + return FALSE; + } + return TRUE; } @@ -2495,6 +2504,9 @@ I810CloseScreen(int scrnIndex, ScreenPtr pScreen) */ xf86GARTCloseScreen(scrnIndex); + xfree(pI810->LpRing); + pI810->LpRing = NULL; + pScrn->vtSema = FALSE; pScreen->CloseScreen = pI810->CloseScreen; return (*pScreen->CloseScreen) (scrnIndex, pScreen); -- cgit v1.2.3