radeon: avoid page flip code in DRI2
authorDave Airlie <airlied@redhat.com>
Wed, 25 Feb 2009 09:22:42 +0000 (19:22 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 26 Feb 2009 05:32:34 +0000 (15:32 +1000)
src/mesa/drivers/dri/radeon/radeon_state.c

index 86d872030bc096224a872332c5f306997088fe2b..5fffa286fe2722ba718adc6ee8b4fe1ffa5ec108 100644 (file)
@@ -1563,7 +1563,8 @@ static void radeonDrawBuffer( GLcontext *ctx, GLenum mode )
    }
 
    radeonSetCliprects( &rmesa->radeon );
-   radeonUpdatePageFlipping(&rmesa->radeon);
+   if (!rmesa->radeon.radeonScreen->driScreen->dri2.enabled)
+      radeonUpdatePageFlipping(&rmesa->radeon);
    /* We'll set the drawing engine's offset/pitch parameters later
     * when we update other state.
     */