summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/program.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-11-23 10:12:55 -0700
committerBrian Paul <brianp@vmware.com>2010-11-23 15:52:43 -0700
commit512f840702d58b48607a9dca06dd939256c7afed (patch)
tree27ceaee5de67f4aafb7fc9b4f70c1f5eca7727bb /src/mesa/program/program.h
parentb8dacaf174517d3efa32711e0f85f8b861d0846b (diff)
downloadexternal_mesa3d-512f840702d58b48607a9dca06dd939256c7afed.zip
external_mesa3d-512f840702d58b48607a9dca06dd939256c7afed.tar.gz
external_mesa3d-512f840702d58b48607a9dca06dd939256c7afed.tar.bz2
mesa: _mesa_valid_register_index() to validate register indexes
Diffstat (limited to 'src/mesa/program/program.h')
-rw-r--r--src/mesa/program/program.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/program/program.h b/src/mesa/program/program.h
index 70cc2c3..1f1d614 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);