gallium: reorder funcs
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Apr 2008 22:32:46 +0000 (16:32 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 9 Apr 2008 22:32:46 +0000 (16:32 -0600)
src/mesa/state_tracker/st_cb_flush.c

index 167c7ccbe258d3a83ab1138c10f882fb2c694c44..6bda877bb07f82e871ef83758db84315a0e0861f 100644 (file)
@@ -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()
  */