st/mesa: make st_setup_current static
authorMarek Olšák <marek.olsak@amd.com>
Fri, 24 Jan 2020 02:10:06 +0000 (21:10 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 14 Feb 2020 23:16:27 +0000 (18:16 -0500)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3829>

src/mesa/state_tracker/st_atom.h
src/mesa/state_tracker/st_atom_array.c

index d5a670a5d1622abf67014149bf158451d2ecda66..ede45d66784765a9a730e9f4f65890dfd08ac7b4 100644 (file)
@@ -66,13 +66,6 @@ st_setup_arrays(struct st_context *st,
                 struct pipe_vertex_buffer *vbuffer, unsigned *num_vbuffers,
                 bool *has_user_vertex_buffers);
 
-void
-st_setup_current(struct st_context *st,
-                 const struct st_vertex_program *vp,
-                 const struct st_common_variant *vp_variant,
-                 struct pipe_vertex_element *velements,
-                 struct pipe_vertex_buffer *vbuffer, unsigned *num_vbuffers);
-
 void
 st_setup_current_user(struct st_context *st,
                       const struct st_vertex_program *vp,
index 8075ecbd9a39991d97d4e8bed7bd8a13921b92fa..4b752405018ce27c9c3409c72a9e97d9f033c50a 100644 (file)
@@ -191,7 +191,7 @@ st_setup_arrays(struct st_context *st,
 /* ALWAYS_INLINE helps the compiler realize that most of the parameters are
  * on the stack.
  */
-void ALWAYS_INLINE
+static void ALWAYS_INLINE
 st_setup_current(struct st_context *st,
                  const struct st_vertex_program *vp,
                  const struct st_common_variant *vp_variant,