summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_vs_tnl.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-10-13 11:20:25 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-10-13 11:20:25 +0000
commitfd6341e57494e80f02aaf69461a7169e9048c39f (patch)
treec3b1a087265bc2184880838d364c7788b8584136 /src/mesa/drivers/dri/i965/brw_vs_tnl.c
parente595ce79d6b917f7106f3b340795bd507e2625e8 (diff)
Make sure instructions are zero'd out before use.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs_tnl.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs_tnl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_tnl.c b/src/mesa/drivers/dri/i965/brw_vs_tnl.c
index c1099d4c67..1df111f645 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;