mesa: also pass the GPU program to _mesa_append_uniforms_to_file()
[mesa.git] / src / mesa / shader / prog_print.h
index 3cdb1b195e05dd7c587f8fa0c34f2c82e64528f6..fc286ded540e1855ccb57bc7d49e58c96382eeb3 100644 (file)
@@ -43,6 +43,9 @@ _mesa_condcode_string(GLuint condcode);
 extern const char *
 _mesa_swizzle_string(GLuint swizzle, GLuint negateBase, GLboolean extended);
 
+const char *
+_mesa_writemask_string(GLuint writeMask);
+
 extern void
 _mesa_print_swizzle(GLuint swizzle);
 
@@ -53,6 +56,13 @@ _mesa_print_alu_instruction(const struct prog_instruction *inst,
 extern void
 _mesa_print_instruction(const struct prog_instruction *inst);
 
+extern GLint
+_mesa_fprint_instruction_opt(FILE *f,
+                            const struct prog_instruction *inst,
+                            GLint indent,
+                            gl_prog_print_mode mode,
+                            const struct gl_program *prog);
+
 extern GLint
 _mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent,
                             gl_prog_print_mode mode,
@@ -62,8 +72,9 @@ extern void
 _mesa_print_program(const struct gl_program *prog);
 
 extern void
-_mesa_print_program_opt(const struct gl_program *prog, gl_prog_print_mode mode,
-                        GLboolean lineNumbers);
+_mesa_fprint_program_opt(FILE *f,
+                         const struct gl_program *prog, gl_prog_print_mode mode,
+                         GLboolean lineNumbers);
 
 extern void
 _mesa_print_program_parameters(GLcontext *ctx, const struct gl_program *prog);
@@ -72,4 +83,12 @@ extern void
 _mesa_print_parameter_list(const struct gl_program_parameter_list *list);
 
 
+extern void
+_mesa_write_shader_to_file(const struct gl_shader *shader);
+
+extern void
+_mesa_append_uniforms_to_file(const struct gl_shader *shader,
+                              const struct gl_program *prog);
+
+
 #endif /* PROG_PRINT_H */