From 512f840702d58b48607a9dca06dd939256c7afed Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 23 Nov 2010 10:12:55 -0700 Subject: mesa: _mesa_valid_register_index() to validate register indexes --- src/mesa/program/program.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/program/program.h') 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); -- cgit v1.1