Regard the screen pixmap as suitable for acceleration.

With UXA on the fake bufmgr, the screen pixmap doesn't have a BO and so
no acceleration was occurring.
This commit is contained in:
Eric Anholt 2009-02-24 21:48:11 -08:00
parent 70e0261208
commit 635eaa511f
1 changed files with 6 additions and 0 deletions

View File

@ -893,6 +893,12 @@ i830_uxa_block_handler (ScreenPtr screen)
static Bool
i830_uxa_pixmap_is_offscreen(PixmapPtr pixmap)
{
ScreenPtr screen = pixmap->drawable.pScreen;
/* The front buffer is always in memory and pinned */
if (screen->GetScreenPixmap(screen) == pixmap)
return TRUE;
return i830_get_pixmap_bo (pixmap) != NULL;
}