r300: don't call page flip on DRI2
authorDave Airlie <airlied@redhat.com>
Thu, 26 Feb 2009 01:09:16 +0000 (11:09 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 26 Feb 2009 01:09:16 +0000 (11:09 +1000)
src/mesa/drivers/dri/r300/r300_state.c

index 93ef06fb268675d5ee8b678c81fe80b7d44a1b77..ba1deee23ec884e5c120fdfc7624f484ec2cdeff 100644 (file)
@@ -2742,7 +2742,8 @@ static void r300DrawBuffer( GLcontext *ctx, GLenum mode )
        radeon_firevertices(&rmesa->radeon);    /* don't pipeline cliprect changes */
 
        radeonSetCliprects( &rmesa->radeon );
-       radeonUpdatePageFlipping(&rmesa->radeon);
+        if (!rmesa->radeon.radeonScreen->driScreen->dri2.enabled) 
+               radeonUpdatePageFlipping(&rmesa->radeon);
 }
 
 static void r300ReadBuffer( GLcontext *ctx, GLenum mode )