Check for inst->CondUpdate, print .C suffix.
authorBrian <brian@yutani.localnet.net>
Mon, 18 Dec 2006 23:21:58 +0000 (16:21 -0700)
committerBrian <brian@yutani.localnet.net>
Mon, 18 Dec 2006 23:21:58 +0000 (16:21 -0700)
src/mesa/shader/prog_print.c

index 7e2e1b22c4b7e1fbeec0b0440e2bc8ba5ee47e45..4cd55d0bca854d65bc8e28bc801ba505b6376269 100644 (file)
@@ -206,16 +206,15 @@ _mesa_print_alu_instruction(const struct prog_instruction *inst,
    GLuint j;
 
    _mesa_printf("%s", opcode_string);
+   if (inst->CondUpdate)
+      _mesa_printf(".C");
 
    /* frag prog only */
    if (inst->SaturateMode == SATURATE_ZERO_ONE)
       _mesa_printf("_SAT");
 
    if (inst->DstReg.File != PROGRAM_UNDEFINED) {
-      _mesa_printf(" %s[%d]%s",
-                  program_file_string((enum register_file) inst->DstReg.File),
-                  inst->DstReg.Index,
-                  writemask_string(inst->DstReg.WriteMask));
+      print_dst_reg(&inst->DstReg);
    }
    else {
       _mesa_printf(" ???");