diff options
author | marha <marha@users.sourceforge.net> | 2011-07-18 08:19:27 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-07-18 08:19:27 +0200 |
commit | 7723537ddbe5dd4070f2bebbd4e0c93be3244b18 (patch) | |
tree | 191087c1b324a1effd6c003c529fb06d53d9543f /mesalib/src/mesa/program/prog_optimize.c | |
parent | 2ce12f084113a0097fa1a0d67e2f8fe1ab70092b (diff) | |
download | vcxsrv-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.c | 3 |
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 |