can_exchange() fails on at least Xorg 1.12+. This fixes
it in the same way it was fixed in the ati & intel ddx.

Signed-off-by: Mario Kleiner <[email protected]>
---
 src/nouveau_dri2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index 3aa5ec5..5b62425 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -160,7 +160,7 @@ can_exchange(DrawablePtr draw, PixmapPtr dst_pix, PixmapPtr 
src_pix)
        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 &&
+               dst_pix->drawable.bitsPerPixel == 
src_pix->drawable.bitsPerPixel &&
                dst_pix->devKind == src_pix->devKind;
 }
 
-- 
1.7.5.4

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to