summaryrefslogtreecommitdiff
path: root/src/mesa/shader/prog_optimize.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-24 16:28:36 -0600
committerBrian Paul <brianp@vmware.com>2009-04-24 16:28:36 -0600
commit7da3f9403b235394a5c7e9456e34a0c9dad7dd15 (patch)
treea3802cd47e568e331735ce8389cb07b63e20d039 /src/mesa/shader/prog_optimize.h
parent027ed1b505a1bf6e3f5ad4412734d7edf337c08b (diff)
mesa: refactor code and make _mesa_find_temp_intervals() public
Diffstat (limited to 'src/mesa/shader/prog_optimize.h')
-rw-r--r--src/mesa/shader/prog_optimize.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_optimize.h b/src/mesa/shader/prog_optimize.h
index d102cfd9fc1..43894a27237 100644
--- a/src/mesa/shader/prog_optimize.h
+++ b/src/mesa/shader/prog_optimize.h
@@ -25,7 +25,19 @@
#ifndef PROG_OPT_H
#define PROG_OPT_H
+
+#include "main/config.h"
+
+
struct gl_program;
+struct prog_instruction;
+
+
+extern GLboolean
+_mesa_find_temp_intervals(const struct prog_instruction *instructions,
+ GLuint numInstructions,
+ GLint intBegin[MAX_PROGRAM_TEMPS],
+ GLint intEnd[MAX_PROGRAM_TEMPS]);
extern void
_mesa_optimize_program(GLcontext *ctx, struct gl_program *program);