diff options
author | Eric Anholt <eric@anholt.net> | 2009-02-24 21:48:11 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-02-26 14:20:42 -0800 |
commit | 635eaa511f28fb673fe306e46ed5370e78a8a534 (patch) | |
tree | 6a2d1c2c5b15f7ccb54e465615d9c059547dd471 | |
parent | 70e0261208654c6c875ad462da2734c6aa9eeb96 (diff) |
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.
-rw-r--r-- | 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 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; } |