diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2011-08-23 13:10:59 +0200 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2011-08-23 13:10:59 +0200 |
commit | 169512fbe91f0671a90dfee5e280357f0a4ef701 (patch) | |
tree | 8ef2c4bc94af5875b53b6206e8c2c259d4768646 | |
parent | b806e3f97a73701f057c45b1f45233e69e19f113 (diff) | |
download | xorg-driver-xf86-video-nouveau-169512fbe91f0671a90dfee5e280357f0a4ef701.tar.gz |
dri2: Disable the "exchange" swapbuffers path for the moment (bug 35930).
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>
-rw-r--r-- | src/nouveau_dri2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c index 1a68ed3..2081ce2 100644 --- a/src/nouveau_dri2.c +++ b/src/nouveau_dri2.c @@ -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 && |