Export _mesa_print_alu_instruction() to allow drivers to roll their
own debug code for programs with driver-private opcodes.
Remove redundant loop in _mesa_num_inst_src_regs().
diff --git a/src/mesa/shader/program.h b/src/mesa/shader/program.h
index 6a34533..5b73965 100644
--- a/src/mesa/shader/program.h
+++ b/src/mesa/shader/program.h
@@ -264,6 +264,11 @@
extern void
_mesa_print_instruction(const struct prog_instruction *inst);
+void
+_mesa_print_alu_instruction(const struct prog_instruction *inst,
+ const char *opcode_string,
+ GLuint numRegs);
+
extern void
_mesa_print_program(const struct gl_program *prog);