From: Keith Whitwell Date: Fri, 13 Oct 2006 11:20:25 +0000 (+0000) Subject: Make sure instructions are zero'd out before use. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd6341e57494e80f02aaf69461a7169e9048c39f;p=mesa.git Make sure instructions are zero'd out before use. --- diff --git a/src/mesa/drivers/dri/i965/brw_vs_tnl.c b/src/mesa/drivers/dri/i965/brw_vs_tnl.c index c1099d4c676..1df111f6457 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_tnl.c +++ b/src/mesa/drivers/dri/i965/brw_vs_tnl.c @@ -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;