void st_flush( struct st_context *st, uint pipeFlushFlags,
struct pipe_fence_handle **fence )
{
- FLUSH_CURRENT(st->ctx, 0);
+ if (pipeFlushFlags & PIPE_FLUSH_RENDER_CACHE)
+ FLUSH_CURRENT(st->ctx, 0);
/* Release any vertex buffers that might potentially be accessed in
* successive frames:
util_gen_mipmap_flush(st->gen_mipmap);
st->pipe->flush( st->pipe, pipeFlushFlags, fence );
+
+ if ((pipeFlushFlags & PIPE_FLUSH_FRAME) &&
+ is_front_buffer_dirty(st))
+ display_front_buffer(st);
}
* problems that need to be fixed elsewhere.
*/
st_flush(st, PIPE_FLUSH_RENDER_CACHE | PIPE_FLUSH_FRAME, NULL);
-
- if (is_front_buffer_dirty(st)) {
- display_front_buffer(st);
- }
}
struct st_context *st = ctx->st;
st_finish(st);
-
- if (is_front_buffer_dirty(st)) {
- display_front_buffer(st);
- }
}