From 635eaa511f28fb673fe306e46ed5370e78a8a534 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 24 Feb 2009 21:48:11 -0800 Subject: [PATCH] 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. --- src/i830_exa.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/i830_exa.c b/src/i830_exa.c index d691f3d8..20e7a130 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; }