consolidate some code
authorBrian <brian@yutani.localnet.net>
Fri, 23 Mar 2007 23:45:53 +0000 (17:45 -0600)
committerBrian <brian@yutani.localnet.net>
Fri, 23 Mar 2007 23:45:53 +0000 (17:45 -0600)
src/mesa/shader/prog_print.c

index 39d2a07812e932f24c1bc9e854d183826962b02c..3f7ad47e05eb321af274bcfa60623ec5e70909e7 100644 (file)
@@ -601,14 +601,9 @@ _mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent,
       _mesa_printf("ENDLOOP; # (goto %d)\n", inst->BranchTarget);
       break;
    case OPCODE_BRK:
-      _mesa_printf("BRK (%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_CONT:
-      _mesa_printf("CONT (%s%s); #(goto %d)",
+      _mesa_printf("%s (%s%s); # (goto %d)",
+                   _mesa_opcode_string(inst->Opcode),
                    condcode_string(inst->DstReg.CondMask),
                    _mesa_swizzle_string(inst->DstReg.CondSwizzle, 0, GL_FALSE),
                    inst->BranchTarget);