Commit c947d796 authored by Eric Anholt's avatar Eric Anholt

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.
parent b17a4de8
......@@ -513,6 +513,6 @@ exaDDXDriverInit(ScreenPtr pScreen)
pExaScr->migration = ExaMigrationAlways;
pExaScr->migration = ExaMigrationSmart;
pExaScr->hideOffscreenPixmapData = TRUE;
......@@ -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",
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