mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
restore swapbuffers throttling
This commit is contained in:
parent
9c02649d18
commit
f74e06bf11
2 changed files with 5 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -171,6 +171,7 @@ struct intel_context
|
|||
GLuint NewGLState;
|
||||
|
||||
GLuint last_fence;
|
||||
GLuint last_swap_fence;
|
||||
|
||||
struct intel_batchbuffer *batch;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue