Permalink
Browse files

dri2: Disable the "exchange" swapbuffers path for the moment (bug 359…

…30).

Allow page flipping only for scanout buffer for now as simple swapping
between off-screen pixmaps confuses compiz because there is no
syncronization method to tell it about that swap

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
  • Loading branch information...
1 parent b806e3f commit 169512fbe91f0671a90dfee5e280357f0a4ef701 @maximlevitsky maximlevitsky committed with curro Aug 23, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/nouveau_dri2.c
View
@@ -153,8 +153,7 @@ can_exchange(DrawablePtr draw, PixmapPtr dst_pix, PixmapPtr src_pix)
}
- return (!nouveau_exa_pixmap_is_onscreen(dst_pix) ||
- (DRI2CanFlip(draw) && pNv->has_pageflip)) &&
+ return ((DRI2CanFlip(draw) && pNv->has_pageflip)) &&
dst_pix->drawable.width == src_pix->drawable.width &&
dst_pix->drawable.height == src_pix->drawable.height &&
dst_pix->drawable.depth == src_pix->drawable.depth &&

0 comments on commit 169512f

Please sign in to comment.