mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 14:28:08 +02:00
mesa: remove _mesa prefix from static function
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5656>
This commit is contained in:
parent
849227d70f
commit
0e7b1a6b1a
1 changed files with 7 additions and 8 deletions
|
|
@ -54,8 +54,8 @@
|
||||||
* The program parser will produce the state[] values.
|
* The program parser will produce the state[] values.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
_mesa_fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
gl_constant_value *val)
|
gl_constant_value *val)
|
||||||
{
|
{
|
||||||
GLfloat *value = &val->f;
|
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;
|
matrix = ctx->ProgramMatrixStack[index].Top;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_mesa_problem(ctx, "Bad matrix name in _mesa_fetch_state()");
|
_mesa_problem(ctx, "Bad matrix name in fetch_state()");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (modifier == STATE_MATRIX_INVERSE ||
|
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]);
|
ctx->FragmentProgram.Current->arb.LocalParams[idx]);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
_mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()");
|
_mesa_problem(ctx, "Bad state switch in fetch_state()");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -415,7 +415,7 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index16 state[],
|
||||||
ctx->VertexProgram.Current->arb.LocalParams[idx]);
|
ctx->VertexProgram.Current->arb.LocalParams[idx]);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
_mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()");
|
_mesa_problem(ctx, "Bad state switch in fetch_state()");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1100,9 +1100,8 @@ _mesa_load_state_parameters(struct gl_context *ctx,
|
||||||
for (i = 0; i < paramList->NumParameters; i++) {
|
for (i = 0; i < paramList->NumParameters; i++) {
|
||||||
if (paramList->Parameters[i].Type == PROGRAM_STATE_VAR) {
|
if (paramList->Parameters[i].Type == PROGRAM_STATE_VAR) {
|
||||||
unsigned pvo = paramList->ParameterValueOffset[i];
|
unsigned pvo = paramList->ParameterValueOffset[i];
|
||||||
_mesa_fetch_state(ctx,
|
fetch_state(ctx, paramList->Parameters[i].StateIndexes,
|
||||||
paramList->Parameters[i].StateIndexes,
|
paramList->ParameterValues + pvo);
|
||||||
paramList->ParameterValues + pvo);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue