projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed5e95a
)
prog_optimize: fix a warning that a variable may be uninitialized
author
Marek Olšák
<maraeo@gmail.com>
Fri, 15 Jul 2011 18:57:39 +0000
(20:57 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Fri, 15 Jul 2011 19:48:28 +0000
(21:48 +0200)
src/mesa/program/prog_optimize.c
patch
|
blob
|
history
diff --git
a/src/mesa/program/prog_optimize.c
b/src/mesa/program/prog_optimize.c
index 11debc485eb4c23ca8116011d19faab6f645ba6e..8a40fa69eca6ad5bb1ebf8d42cf494c3b7ef3fa4 100644
(file)
--- 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