Commit 81b6385f authored by Alex Deucher's avatar Alex Deucher

- re-add RestoreAccelState() to make XAA happy for dualhead

parent 2f0a836a
......@@ -1439,6 +1439,16 @@ void SavageSetGBD_2000(ScrnInfoPtr pScrn)
OUTREG8(SEQ_DATA_REG,byte);
}
static
void SavageRestoreAccelState(ScrnInfoPtr pScrn)
{
SavagePtr psav = SAVPTR(pScrn);
psav->WaitIdleEmpty(psav);
return;
}
/* Acceleration init function, sets up pointers to our accelerated functions */
Bool
......@@ -1492,6 +1502,21 @@ SavageInitAccel(ScreenPtr pScreen)
xaaptr->Sync = SavageAccelSync;
if(xf86IsEntityShared(pScrn->entityList[0]))
{
DevUnion* pPriv;
SavageEntPtr pEnt;
pPriv = xf86GetEntityPrivate(pScrn->entityList[0],
gSavageEntityIndex);
pEnt = pPriv->ptr;
/*if there are more than one devices sharing this entity, we
have to assign this call back, otherwise the XAA will be
disabled */
if(pEnt->HasSecondary)
xaaptr->RestoreAccelState = SavageRestoreAccelState;
}
/* ScreenToScreen copies */
#if 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment