diff options
author | Brian Paul <[email protected]> | 2010-11-23 10:12:55 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-11-23 15:52:43 -0700 |
commit | 512f840702d58b48607a9dca06dd939256c7afed (patch) | |
tree | 27ceaee5de67f4aafb7fc9b4f70c1f5eca7727bb /src/mesa/program/program.h | |
parent | b8dacaf174517d3efa32711e0f85f8b861d0846b (diff) |
mesa: _mesa_valid_register_index() to validate register indexes
Diffstat (limited to 'src/mesa/program/program.h')
-rw-r--r-- | src/mesa/program/program.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/program/program.h b/src/mesa/program/program.h index 70cc2c3aaed..1f1d6140255 100644 --- a/src/mesa/program/program.h +++ b/src/mesa/program/program.h @@ -165,6 +165,12 @@ extern GLint _mesa_find_free_register(const GLboolean used[], GLuint maxRegs, GLuint firstReg); + +extern GLboolean +_mesa_valid_register_index(const struct gl_context *ctx, + GLuint shaderType, + gl_register_file file, GLint index); + extern void _mesa_postprocess_program(struct gl_context *ctx, struct gl_program *prog); |