Mesa (master): mesa: remove _mesa prefix from static function
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 30 01:48:08 UTC 2020
Module: Mesa
Branch: master
Commit: 0e7b1a6b1a5b9e2993312dbc6ae55a87865917c2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e7b1a6b1a5b9e2993312dbc6ae55a87865917c2
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Fri Jun 26 15:37:26 2020 +1000
mesa: remove _mesa prefix from static function
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5656>
---
src/mesa/program/prog_statevars.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/mesa/program/prog_statevars.c b/src/mesa/program/prog_statevars.c
index b24e7540f0a..1a3c8ab654f 100644
--- a/src/mesa/program/prog_statevars.c
+++ b/src/mesa/program/prog_statevars.c
@@ -54,8 +54,8 @@
* The program parser will produce the state[] values.
*/
static void
-_mesa_fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
- gl_constant_value *val)
+fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
+ gl_constant_value *val)
{
GLfloat *value = &val->f;
@@ -322,7 +322,7 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
matrix = ctx->ProgramMatrixStack[index].Top;
}
else {
- _mesa_problem(ctx, "Bad matrix name in _mesa_fetch_state()");
+ _mesa_problem(ctx, "Bad matrix name in fetch_state()");
return;
}
if (modifier == STATE_MATRIX_INVERSE ||
@@ -386,7 +386,7 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
ctx->FragmentProgram.Current->arb.LocalParams[idx]);
return;
default:
- _mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()");
+ _mesa_problem(ctx, "Bad state switch in fetch_state()");
return;
}
}
@@ -415,7 +415,7 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
ctx->VertexProgram.Current->arb.LocalParams[idx]);
return;
default:
- _mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()");
+ _mesa_problem(ctx, "Bad state switch in fetch_state()");
return;
}
}
@@ -1100,9 +1100,8 @@ _mesa_load_state_parameters(struct gl_context *ctx,
for (i = 0; i < paramList->NumParameters; i++) {
if (paramList->Parameters[i].Type == PROGRAM_STATE_VAR) {
unsigned pvo = paramList->ParameterValueOffset[i];
- _mesa_fetch_state(ctx,
- paramList->Parameters[i].StateIndexes,
- paramList->ParameterValues + pvo);
+ fetch_state(ctx, paramList->Parameters[i].StateIndexes,
+ paramList->ParameterValues + pvo);
}
}
}
More information about the mesa-commit
mailing list