prog_optimize: fix a warning that a variable may be uninitialized

(cherry picked from commit dade65505b)
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák 2011-07-15 20:57:39 +02:00 committed by Brian Paul
parent 73b68316f4
commit fe70a40e47

View file

@ -1304,6 +1304,9 @@ _mesa_simplify_cmp(struct gl_program * program)
assert(inst->DstReg.Index < REG_ALLOCATE_MAX_PROGRAM_TEMPS);
prevWriteMask = tempWrites[inst->DstReg.Index];
tempWrites[inst->DstReg.Index] |= inst->DstReg.WriteMask;
} else {
/* No other register type can be a destination register. */
continue;
}
/* For a CMP to be considered a conditional write, the destination