exaGetImage: Don't migrate pixmap out of FB with no DownloadFromScreen hook.

Based on the assumption that GetImage is relatively rare, so the overhead of
the migration is probably bigger than any potential savings.
This commit is contained in:
Michel Dänzer 2007-08-24 14:10:13 +02:00
parent 5d9e2c2821
commit d0f0d1092c

View File

@ -1357,7 +1357,7 @@ exaGetImage (DrawablePtr pDrawable, int x, int y, int w, int h,
goto fallback;
if (pExaScr->info->DownloadFromScreen == NULL)
goto migrate_and_fallback;
goto fallback;
/* Only cover the ZPixmap, solid copy case. */
if (format != ZPixmap || !EXA_PM_IS_SOLID(pDrawable, planeMask))