From: Brian Date: Fri, 23 Feb 2007 18:43:44 +0000 (-0700) Subject: re-expose _mesa_print_alu_instruction() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0020d1022f4b5befe4adf783bedc4cf83e09f01f;p=mesa.git re-expose _mesa_print_alu_instruction() --- diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index 0d21912a0ee..4519f0c030b 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) { @@ -461,6 +461,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) { diff --git a/src/mesa/shader/prog_print.h b/src/mesa/shader/prog_print.h index c0101b6b0f6..9c7607f9d58 100644 --- a/src/mesa/shader/prog_print.h +++ b/src/mesa/shader/prog_print.h @@ -40,6 +40,10 @@ typedef enum { 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);