diff options
author | Marek Olšák <[email protected]> | 2011-07-15 20:57:39 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-07-15 21:48:28 +0200 |
commit | dade65505bdf62da448479e316cc7f4f2da22417 (patch) | |
tree | 79e9f0d3ec399f42cedc28adb2e6607ea9f38f3c /src/mesa/program/prog_optimize.c | |
parent | ed5e95ada6aa310266eb0969ac7d721c3664f1d1 (diff) |
prog_optimize: fix a warning that a variable may be uninitialized
Diffstat (limited to 'src/mesa/program/prog_optimize.c')
-rw-r--r-- | src/mesa/program/prog_optimize.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/program/prog_optimize.c b/src/mesa/program/prog_optimize.c index 11debc485eb..8a40fa69eca 100644 --- a/src/mesa/program/prog_optimize.c +++ b/src/mesa/program/prog_optimize.c @@ -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 |