From: Keith Whitwell Date: Tue, 21 Dec 2004 12:35:04 +0000 (+0000) Subject: Add missing swap-control calculations. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3955313e7caac1a085ab87253b268578923153c0;p=mesa.git Add missing swap-control calculations. Remove debug printf. --- diff --git a/src/mesa/drivers/dri/unichrome/via_ioctl.c b/src/mesa/drivers/dri/unichrome/via_ioctl.c index 685a51ea423..64f9e6cd45f 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));