summaryrefslogtreecommitdiff
path: root/src/mesa/shader/program.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-09-20 12:57:54 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-09-20 12:57:54 +0000
commit5658810660aabc6348ae1b14eccbc8a88ce679f0 (patch)
tree2598e236c16185442d0a360091539a80be60b7fd /src/mesa/shader/program.h
parentcb54c056a6d46d03bfa0c4927f5ac8843feab8cd (diff)
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().
Diffstat (limited to 'src/mesa/shader/program.h')
-rw-r--r--src/mesa/shader/program.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/program.h b/src/mesa/shader/program.h
index 6a345339aff..5b73965dcaf 100644
--- a/src/mesa/shader/program.h
+++ b/src/mesa/shader/program.h
@@ -264,6 +264,11 @@ _mesa_load_state_parameters(GLcontext *ctx,
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);