Mesa (master): mesa: inline _mesa_finish()

Timothy Arceri tarceri at kemper.freedesktop.org
Wed Jun 28 22:54:33 UTC 2017


Module: Mesa
Branch: master
Commit: cc88eb97e08070fb5b599c0dd3f3d3cc0b88f9a1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc88eb97e08070fb5b599c0dd3f3d3cc0b88f9a1

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Wed Jun 28 14:20:48 2017 +1000

mesa: inline _mesa_finish()

Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>

---

 src/mesa/main/context.c | 24 ++++++++----------------
 src/mesa/main/context.h |  3 ---
 2 files changed, 8 insertions(+), 19 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index b801322fd0..3057a92eca 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1834,20 +1834,6 @@ _mesa_record_error(struct gl_context *ctx, GLenum error)
 
 
 /**
- * Flush commands and wait for completion.
- */
-void
-_mesa_finish(struct gl_context *ctx)
-{
-   FLUSH_VERTICES( ctx, 0 );
-   FLUSH_CURRENT( ctx, 0 );
-   if (ctx->Driver.Finish) {
-      ctx->Driver.Finish(ctx);
-   }
-}
-
-
-/**
  * Flush commands.
  */
 void
@@ -1863,7 +1849,7 @@ _mesa_flush(struct gl_context *ctx)
 
 
 /**
- * Execute glFinish().
+ * Flush commands and wait for completion.
  *
  * Calls the #ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH macro and the
  * dd_function_table::Finish driver callback, if not NULL.
@@ -1873,7 +1859,13 @@ _mesa_Finish(void)
 {
    GET_CURRENT_CONTEXT(ctx);
    ASSERT_OUTSIDE_BEGIN_END(ctx);
-   _mesa_finish(ctx);
+
+   FLUSH_VERTICES(ctx, 0);
+   FLUSH_CURRENT(ctx, 0);
+
+   if (ctx->Driver.Finish) {
+      ctx->Driver.Finish(ctx);
+   }
 }
 
 
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index ccb54635de..4f75f57713 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -162,9 +162,6 @@ _mesa_record_error( struct gl_context *ctx, GLenum error );
 
 
 extern void
-_mesa_finish(struct gl_context *ctx);
-
-extern void
 _mesa_flush(struct gl_context *ctx);
 
 extern void GLAPIENTRY




More information about the mesa-commit mailing list