mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 08:58:10 +02:00
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:
parent
73b68316f4
commit
fe70a40e47
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue