aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/program/prog_optimize.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-07-18 08:19:27 +0200
committermarha <marha@users.sourceforge.net>2011-07-18 08:19:27 +0200
commit7723537ddbe5dd4070f2bebbd4e0c93be3244b18 (patch)
tree191087c1b324a1effd6c003c529fb06d53d9543f /mesalib/src/mesa/program/prog_optimize.c
parent2ce12f084113a0097fa1a0d67e2f8fe1ab70092b (diff)
downloadvcxsrv-7723537ddbe5dd4070f2bebbd4e0c93be3244b18.tar.gz
vcxsrv-7723537ddbe5dd4070f2bebbd4e0c93be3244b18.tar.bz2
vcxsrv-7723537ddbe5dd4070f2bebbd4e0c93be3244b18.zip
pixman git update 18 July 2011
Diffstat (limited to 'mesalib/src/mesa/program/prog_optimize.c')
-rw-r--r--mesalib/src/mesa/program/prog_optimize.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesalib/src/mesa/program/prog_optimize.c b/mesalib/src/mesa/program/prog_optimize.c
index 11debc485..8a40fa69e 100644
--- a/mesalib/src/mesa/program/prog_optimize.c
+++ b/mesalib/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