mesa: separate legacy stuff from gl_texture_unit into gl_fixedfunc_texture_unit
[mesa.git] / src / mesa / program / prog_optimize.h
index 43894a2723772f34cca1a397880c8da867a10d20..fadfd621c55423852798198cd38fc9af62265ab3 100644 (file)
@@ -1,6 +1,5 @@
 /*
  * Mesa 3-D graphics library
- * Version:  7.5
  *
  * Copyright (C) 2009  VMware, Inc.  All Rights Reserved.
  *
 
 
 #include "main/config.h"
+#include "main/glheader.h"
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+struct gl_context;
 struct gl_program;
 struct prog_instruction;
 
@@ -40,6 +46,15 @@ _mesa_find_temp_intervals(const struct prog_instruction *instructions,
                           GLint intEnd[MAX_PROGRAM_TEMPS]);
 
 extern void
-_mesa_optimize_program(GLcontext *ctx, struct gl_program *program);
+_mesa_optimize_program(struct gl_program *program, void *mem_ctx);
+
+extern GLboolean
+_mesa_constant_fold(struct gl_program *prog);
+
+
+#ifdef __cplusplus
+}
+#endif
+
 
 #endif