summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-03-26 16:58:50 -0600
committerBrian <[email protected]>2007-03-26 16:58:50 -0600
commit037c06846041877fb03890864520daa33b5fa4a9 (patch)
treeca40f7ed18af27f9e5c23b88006ed03c1ab96832 /src
parentc042a91b8b202e4c0623e647bda035c715f7c308 (diff)
special case RET
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/prog_print.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c
index 3f7ad47e05e..3ab004191a8 100644
--- a/src/mesa/shader/prog_print.c
+++ b/src/mesa/shader/prog_print.c
@@ -571,6 +571,13 @@ _mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent,
_mesa_printf("CAL %u", inst->BranchTarget);
print_comment(inst);
break;
+ case OPCODE_RET:
+ _mesa_printf("RET (%s%s); # (goto %d)",
+ condcode_string(inst->DstReg.CondMask),
+ _mesa_swizzle_string(inst->DstReg.CondSwizzle, 0, GL_FALSE),
+ inst->BranchTarget);
+ print_comment(inst);
+ break;
case OPCODE_IF:
if (inst->SrcReg[0].File != PROGRAM_UNDEFINED) {
/* Use ordinary register */