Add missing swap-control calculations.
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 21 Dec 2004 12:35:04 +0000 (12:35 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 21 Dec 2004 12:35:04 +0000 (12:35 +0000)
Remove debug printf.

src/mesa/drivers/dri/unichrome/via_ioctl.c

index 685a51ea423b3d1feba1eef752e05e1ceb247345..64f9e6cd45f028a9e085a49ffa69299ad405dd96 100644 (file)
@@ -455,18 +455,8 @@ void viaPageFlip(const __DRIdrawablePrivate *dPriv)
        (void) (*vmesa->get_ust)( &vmesa->swap_missed_ust );
     }
 
-    if (missed_target)
-       fprintf(stderr, "missed target\n");
-/*     else */
-/*        fprintf(stderr, "retcode %d vbl_seq %d vblank_flags %x missed_target %d\n", */
-/*            retcode, vmesa->vbl_seq, vmesa->vblank_flags, missed_target); */
-
-
-
-
     LOCK_HARDWARE(vmesa);
 
-
     /* Page Flip*/
     if(GL_FALSE) {
        viaFlushPrimsLocked(vmesa);
@@ -518,7 +508,10 @@ void viaPageFlip(const __DRIdrawablePrivate *dPriv)
     
     UNLOCK_HARDWARE(vmesa);
     vmesa->uploadCliprects = GL_TRUE;
-    
+
+    vmesa->swap_count++;
+    (void) (*vmesa->get_ust)( &vmesa->swap_ust );
+   
     memcpy(&buffer_tmp, &vmesa->back, sizeof(viaBuffer));
     memcpy(&vmesa->back, &vmesa->front, sizeof(viaBuffer));
     memcpy(&vmesa->front, &buffer_tmp, sizeof(viaBuffer));