[3/6] mesa: Make _mesa_set_varying_vp_inputs static in state.c.

Submitted by Mathias Fröhlich on May 12, 2019, 1:05 p.m.

Details

Message ID 50b6acd702bc5a8d025be4eef4472165f9094938.1557653318.git.Mathias.Froehlich@gmx.net
State New
Headers show
Series "Update mesa state handling past VAO changes." ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Mathias Fröhlich May 12, 2019, 1:05 p.m.
From: Mathias Fröhlich <mathias.froehlich@web.de>

Is no longer used outside that file.

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
---
 src/mesa/main/state.c | 7 +++----
 src/mesa/main/state.h | 4 ----
 2 files changed, 3 insertions(+), 8 deletions(-)

--
2.21.0

Patch hide | download patch | download mbox

diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 097cd9e20d2..217232bcdad 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -420,9 +420,8 @@  _mesa_update_state( struct gl_context *ctx )
  * may vary or otherwise differ from the ctx->Current values.
  * Otherwise, the fp should track them as state values instead.
  */
-void
-_mesa_set_varying_vp_inputs( struct gl_context *ctx,
-                             GLbitfield varying_inputs )
+static void
+set_varying_vp_inputs(struct gl_context *ctx, GLbitfield varying_inputs)
 {
    if (ctx->API != API_OPENGL_COMPAT &&
        ctx->API != API_OPENGLES)
@@ -535,5 +534,5 @@  _mesa_set_draw_vao(struct gl_context *ctx, struct gl_vertex_array_object *vao,
       ctx->NewDriverState |= ctx->DriverFlags.NewArray;

    ctx->Array._DrawVAOEnabledAttribs = enabled;
-   _mesa_set_varying_vp_inputs(ctx, enabled);
+   set_varying_vp_inputs(ctx, enabled);
 }
diff --git a/src/mesa/main/state.h b/src/mesa/main/state.h
index 92c0661d4ee..b3ea28d0968 100644
--- a/src/mesa/main/state.h
+++ b/src/mesa/main/state.h
@@ -38,10 +38,6 @@  extern void
 _mesa_update_state_locked(struct gl_context *ctx);


-extern void
-_mesa_set_varying_vp_inputs(struct gl_context *ctx, GLbitfield varying_inputs);
-
-
 extern void
 _mesa_set_vp_override(struct gl_context *ctx, GLboolean flag);