#include "pipe/p_winsys.h"
-void st_flush( struct st_context *st )
+void st_flush( struct st_context *st, uint pipeFlushFlags )
{
GLframebuffer *fb = st->ctx->DrawBuffer;
* short-circuiting this, or perhaps pass an "optional" flag down
* to the driver so that it can make the decision.
*/
- st->pipe->flush( st->pipe, 0 );
+ st->pipe->flush( st->pipe, pipeFlushFlags );
if (!fb)
return;
/* Hook for copying "fake" frontbuffer if necessary:
*/
- st->pipe->winsys->flush_frontbuffer( st->pipe->winsys, front_surf );
+ st->pipe->winsys->flush_frontbuffer( st->pipe->winsys, front_surf,
+ st->pipe->priv );
st->flags.frontbuffer_dirty = 0;
}
}
*/
static void st_Flush(GLcontext *ctx)
{
- st_flush(ctx->st);
+ st_flush(ctx->st, 0x0);
}
*/
static void st_Finish(GLcontext *ctx)
{
- struct st_context *st = ctx->st;
-
- st_flush( st );
- st->pipe->winsys->wait_idle( st->pipe->winsys );
+ st_flush(ctx->st, PIPE_FLUSH_WAIT);
}