summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2004-12-21 12:35:04 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2004-12-21 12:35:04 +0000
commit3955313e7caac1a085ab87253b268578923153c0 (patch)
tree980472e35a46df41d01262863a192b6c6cd44092
parent314f8e4d9d600f9db95977ebf931a3fb9bb8ce79 (diff)
Add missing swap-control calculations.
Remove debug printf.
-rw-r--r--src/mesa/drivers/dri/unichrome/via_ioctl.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_ioctl.c b/src/mesa/drivers/dri/unichrome/via_ioctl.c
index 685a51ea42..64f9e6cd45 100644
--- a/src/mesa/drivers/dri/unichrome/via_ioctl.c
+++ b/src/mesa/drivers/dri/unichrome/via_ioctl.c
@@ -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));