[Intel-gfx] [PATCH] Regard the screen pixmap as suitable for acceleration.
Eric Anholt
eric at anholt.net
Wed Feb 25 07:42:44 CET 2009
With UXA on the fake bufmgr, the screen pixmap doesn't have a BO and so
no acceleration was occurring.
---
src/i830_exa.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/i830_exa.c b/src/i830_exa.c
index d691f3d..20e7a13 100644
--- a/src/i830_exa.c
+++ b/src/i830_exa.c
@@ -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;
}
--
1.5.6.5
More information about the Intel-gfx
mailing list