diff options
author | Brian <brian@yutani.localnet.net> | 2007-01-20 09:27:40 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-01-20 09:27:40 -0700 |
commit | 5ae49cf3ed53fda6a904d7e90feef78495ae6903 (patch) | |
tree | 9314ccc16363edd6a4863788d864a60927dda6da /src/mesa/shader/prog_print.c | |
parent | a3e938b8da07e656775e88bb4b078429723689a2 (diff) |
Initial implementation of OPCODE_IF/ELSE/ENDIF instructions.
Diffstat (limited to 'src/mesa/shader/prog_print.c')
-rw-r--r-- | src/mesa/shader/prog_print.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index 04b7c7d22a..78ce752f2a 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -295,7 +295,7 @@ _mesa_print_instruction(const struct prog_instruction *inst) print_comment(inst); break; case OPCODE_BRA: - _mesa_printf("BRA %u (%s.%s)", + _mesa_printf("BRA %u (%s%s)", inst->BranchTarget, condcode_string(inst->DstReg.CondMask), swizzle_string(inst->DstReg.CondSwizzle, 0, GL_FALSE)); @@ -305,6 +305,18 @@ _mesa_print_instruction(const struct prog_instruction *inst) _mesa_printf("CAL %u", inst->BranchTarget); print_comment(inst); break; + case OPCODE_IF: + _mesa_printf(" IF (%s%s)", + condcode_string(inst->DstReg.CondMask), + swizzle_string(inst->DstReg.CondSwizzle, 0, GL_FALSE)); + print_comment(inst); + break; + case OPCODE_ELSE: + _mesa_printf(" ELSE;\n"); + break; + case OPCODE_ENDIF: + _mesa_printf(" ENDIF;\n"); + break; case OPCODE_END: _mesa_printf("END"); print_comment(inst); |