Parcourir la source

tgsi: fix bug in execution of loops inside of conditionals.

Fixes infinite loop bug.
tags/mesa_20090313
Brian Paul il y a 17 ans
Parent
révision
6eb7f763fb
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      src/gallium/auxiliary/tgsi/exec/tgsi_exec.c

+ 2
- 1
src/gallium/auxiliary/tgsi/exec/tgsi_exec.c Voir le fichier

@@ -2400,7 +2400,8 @@ exec_instruction(
/* Restore ContMask, but don't pop */
assert(mach->ContStackTop > 0);
mach->ContMask = mach->ContStack[mach->ContStackTop - 1];
if (mach->LoopMask) {
UPDATE_EXEC_MASK(mach);
if (mach->ExecMask) {
/* repeat loop: jump to instruction just past BGNLOOP */
*pc = inst->InstructionExtLabel.Label + 1;
}

Chargement…
Annuler
Enregistrer