diff options
author | Brian <[email protected]> | 2007-04-18 14:19:17 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-04-18 14:19:17 -0600 |
commit | 6d3d9c1c6de33646b63d47892863939ee1b1e624 (patch) | |
tree | 72a4057938f1aaa7b2d2e0659d3ef14e018a16be /src/mesa/shader/prog_parameter.h | |
parent | e57e752eeef1611cbc8bf9e0aca8c2467267f027 (diff) |
Replace _mesa_parameter_longest_name() with _mesa_longest_parameter_name().
The later takes a type parameter so we can match uniforms or attributes/inputs.
Used by the GL_ACTIVE_ATTRIBUTE_MAX_LENGTH and GL_ACTIVE_UNIFORM_MAX_LENGTH
queries. Fixes problem reported by Brad King in VTK.
Diffstat (limited to 'src/mesa/shader/prog_parameter.h')
-rw-r--r-- | src/mesa/shader/prog_parameter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_parameter.h b/src/mesa/shader/prog_parameter.h index 3d32a64f383..879623b127a 100644 --- a/src/mesa/shader/prog_parameter.h +++ b/src/mesa/shader/prog_parameter.h @@ -131,6 +131,8 @@ _mesa_lookup_parameter_constant(const struct gl_program_parameter_list *list, GLint *posOut, GLuint *swizzleOut); extern GLuint -_mesa_parameter_longest_name(const struct gl_program_parameter_list *list); +_mesa_longest_parameter_name(const struct gl_program_parameter_list *list, + enum register_file type); + #endif /* PROG_PARAMETER_H */ |