i965: init dest reg CondMask = COND_TR (the proper default)
authorBrian Paul <brianp@vmware.com>
Thu, 5 Mar 2009 22:08:36 +0000 (15:08 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 6 Mar 2009 00:25:25 +0000 (17:25 -0700)
Plus fix up a debug printf.

src/mesa/drivers/dri/i965/brw_wm_fp.c

index 7e88ef0053515c5396767989b774872165e5ae7d..533be3858e96ac52ca8132aba80a5bc49975f7b5 100644 (file)
@@ -129,7 +129,7 @@ static struct prog_dst_register dst_reg(GLuint file, GLuint idx)
    reg.Index = idx;
    reg.WriteMask = WRITEMASK_XYZW;
    reg.RelAddr = 0;
-   reg.CondMask = 0;
+   reg.CondMask = COND_TR;
    reg.CondSwizzle = 0;
    reg.CondSrc = 0;
    reg.pad = 0;
@@ -949,7 +949,7 @@ static void print_insns( const struct prog_instruction *insn,
                                     3);
       }
       else 
-        _mesa_printf("UNKNOWN\n");
+        _mesa_printf("965 Opcode %d\n", insn->Opcode);
    }
 }