summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-04-09 16:32:46 -0600
committerBrian Paul <[email protected]>2008-04-09 16:32:46 -0600
commit4ecbd5a70fba3e7d5f8b56ede34867ea5964afc6 (patch)
tree0a3f89595043e8fecb793533ed470bfe2d709b5c
parentaade2f41b0d5cf0fb44e094c0b10cfaf1f621aec (diff)
gallium: reorder funcs
-rw-r--r--src/mesa/state_tracker/st_cb_flush.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/mesa/state_tracker/st_cb_flush.c b/src/mesa/state_tracker/st_cb_flush.c
index 167c7ccbe25..6bda877bb07 100644
--- a/src/mesa/state_tracker/st_cb_flush.c
+++ b/src/mesa/state_tracker/st_cb_flush.c
@@ -102,6 +102,18 @@ void st_flush( struct st_context *st, uint pipeFlushFlags,
}
+void st_finish( struct st_context *st )
+{
+ struct pipe_fence_handle *fence = NULL;
+
+ st_flush(st, PIPE_FLUSH_RENDER_CACHE, &fence);
+
+ st->pipe->winsys->fence_finish(st->pipe->winsys, fence, 0);
+ st->pipe->winsys->fence_reference(st->pipe->winsys, &fence, NULL);
+}
+
+
+
/**
* Called via ctx->Driver.Flush()
*/
@@ -115,17 +127,6 @@ static void st_glFlush(GLcontext *ctx)
}
-void st_finish( struct st_context *st )
-{
- struct pipe_fence_handle *fence = NULL;
-
- st_flush(st, PIPE_FLUSH_RENDER_CACHE, &fence);
-
- st->pipe->winsys->fence_finish(st->pipe->winsys, fence, 0);
- st->pipe->winsys->fence_reference(st->pipe->winsys, &fence, NULL);
-}
-
-
/**
* Called via ctx->Driver.Finish()
*/