restore swapbuffers throttling

This commit is contained in:
Keith Whitwell 2006-02-22 17:18:19 +00:00
parent 9c02649d18
commit f74e06bf11
2 changed files with 5 additions and 1 deletions

View file

@ -61,6 +61,9 @@ void intelCopyBuffer( const __DRIdrawablePrivate *dPriv )
intel = (struct intel_context *) dPriv->driContextPriv->driverPrivate;
intelFlush( &intel->ctx );
bmFinishFence(intel->bm, intel->last_swap_fence);
/* The LOCK_HARDWARE is required for the cliprects. Buffer offsets
* should work regardless.
*/
@ -117,7 +120,7 @@ void intelCopyBuffer( const __DRIdrawablePrivate *dPriv )
}
}
intel_batchbuffer_flush( intel->batch );
intel->last_swap_fence = intel_batchbuffer_flush( intel->batch );
UNLOCK_HARDWARE( intel );
}

View file

@ -171,6 +171,7 @@ struct intel_context
GLuint NewGLState;
GLuint last_fence;
GLuint last_swap_fence;
struct intel_batchbuffer *batch;