summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-02-23 11:43:44 -0700
committerBrian <brian@yutani.localnet.net>2007-02-23 11:43:44 -0700
commit0020d1022f4b5befe4adf783bedc4cf83e09f01f (patch)
treec534aac6ba832185164a9d0381bb1b95028d2a73
parentef0cc9db547017309988c848376569174cfb90e8 (diff)
re-expose _mesa_print_alu_instruction()
-rw-r--r--src/mesa/shader/prog_print.c10
-rw-r--r--src/mesa/shader/prog_print.h4
2 files changed, 13 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c
index 0d21912a0e..4519f0c030 100644
--- a/src/mesa/shader/prog_print.c
+++ b/src/mesa/shader/prog_print.c
@@ -426,7 +426,7 @@ print_comment(const struct prog_instruction *inst)
static void
print_alu_instruction(const struct prog_instruction *inst,
- const char *opcode_string, GLuint numRegs,
+ const char *opcode_string, GLuint numRegs,
gl_prog_print_mode mode,
const struct gl_program *prog)
{
@@ -462,6 +462,14 @@ print_alu_instruction(const struct prog_instruction *inst,
void
+_mesa_print_alu_instruction(const struct prog_instruction *inst,
+ const char *opcode_string, GLuint numRegs)
+{
+ print_alu_instruction(inst, opcode_string, numRegs, PROG_PRINT_DEBUG, NULL);
+}
+
+
+void
_mesa_print_instruction(const struct prog_instruction *inst)
{
/* note: 4th param should be ignored for PROG_PRINT_DEBUG */
diff --git a/src/mesa/shader/prog_print.h b/src/mesa/shader/prog_print.h
index c0101b6b0f..9c7607f9d5 100644
--- a/src/mesa/shader/prog_print.h
+++ b/src/mesa/shader/prog_print.h
@@ -41,6 +41,10 @@ extern const char *
_mesa_swizzle_string(GLuint swizzle, GLuint negateBase, GLboolean extended);
extern void
+_mesa_print_alu_instruction(const struct prog_instruction *inst,
+ const char *opcode_string, GLuint numRegs);
+
+extern void
_mesa_print_instruction(const struct prog_instruction *inst);
extern GLint