Missed in previous commit: Add a new migration scheme, called "Smart" for

lack of a better name. This one behaves somewhat between Greedy and
    Always. It moves in if we can accelerate, unless the destination is
    clean and shouldn't be kept in framebuffer according to the score, in
    which case we migrate out (and force-migrate anything where migration
    is free). This should help fix lack of acceleration for drivers without
    UTS since removing exaAsyncPixmapGCOps, and has removed one performance
    trap with Radeon I'd noticed. It is the new default.
This commit is contained in:
Eric Anholt 2006-04-18 19:18:43 +00:00
parent b17a4de83e
commit c947d796aa
2 changed files with 3 additions and 1 deletions

View File

@ -513,6 +513,6 @@ exaDDXDriverInit(ScreenPtr pScreen)
{
ExaScreenPriv(pScreen);
pExaScr->migration = ExaMigrationAlways;
pExaScr->migration = ExaMigrationSmart;
pExaScr->hideOffscreenPixmapData = TRUE;
}

View File

@ -125,6 +125,8 @@ exaDDXDriverInit(ScreenPtr pScreen)
pExaScr->migration = ExaMigrationGreedy;
else if (strcmp(heuristicName, "always") == 0)
pExaScr->migration = ExaMigrationAlways;
else if (strcmp(heuristicName, "smart") == 0)
pExaScr->migration = ExaMigrationSmart;
else {
xf86DrvMsg (pScreen->myNum, X_WARNING,
"EXA: unknown migration heuristic %s\n",