aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2018-11-01 19:03:26 +0100
committerMathias Fröhlich <[email protected]>2018-11-26 07:57:10 +0100
commitff466c2d48c611d05ee400c814d0da171a6cbce2 (patch)
tree9b7a9fd1377b873af7cc89b48a1ed47fc0dd08ad /src/mesa/state_tracker
parent2a3eae82a11bf9b7bf2d10b33a31502eeaeaebe6 (diff)
mesa/st: Make st_pipe_vertex_format static.
Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_atom.h3
-rw-r--r--src/mesa/state_tracker/st_atom_array.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_atom.h b/src/mesa/state_tracker/st_atom.h
index d36f0180faf..ccf58b10e9e 100644
--- a/src/mesa/state_tracker/st_atom.h
+++ b/src/mesa/state_tracker/st_atom.h
@@ -58,9 +58,6 @@ void st_destroy_atoms( struct st_context *st );
void st_validate_state( struct st_context *st, enum st_pipeline pipeline );
GLuint st_compare_func_to_pipe(GLenum func);
-enum pipe_format
-st_pipe_vertex_format(const struct gl_vertex_format *glformat);
-
void
st_setup_arrays(struct st_context *st,
const struct st_vertex_program *vp,
diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c
index 1073e76c3e4..7a63d7504f3 100644
--- a/src/mesa/state_tracker/st_atom_array.c
+++ b/src/mesa/state_tracker/st_atom_array.c
@@ -237,7 +237,7 @@ static const uint16_t vertex_formats[][4][4] = {
/**
* Return a PIPE_FORMAT_x for the given GL datatype and size.
*/
-enum pipe_format
+static enum pipe_format
st_pipe_vertex_format(const struct gl_vertex_format *vformat)
{
const GLubyte size = vformat->Size;