Make sure instructions are zero'd out before use.
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 13 Oct 2006 11:20:25 +0000 (11:20 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 13 Oct 2006 11:20:25 +0000 (11:20 +0000)
src/mesa/drivers/dri/i965/brw_vs_tnl.c

index c1099d4c67685464daa5b03c9e5e7da031fde62c..1df111f64577b47cf9ce2ee682f1b9e998466600 100644 (file)
@@ -535,6 +535,7 @@ static void emit_op3fn(struct tnl_program *p,
 
    {      
       struct prog_instruction *inst = &p->program->Base.Instructions[nr];
+      memset(inst, 0, sizeof(*inst));
       inst->Opcode = op; 
       inst->StringPos = 0;
       inst->Data = 0;