mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 17:50:39 +02:00
tgsi: fix bug in execution of loops inside of conditionals.
Fixes infinite loop bug.
This commit is contained in:
parent
ec698034d1
commit
6eb7f763fb
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue