From: Lars Hamre Date: Tue, 13 Sep 2016 19:08:00 +0000 (-0600) Subject: tgsi: Enable returns from within loops X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddd6116e32dd27ebdf4291c2a22922e8f38e7788;p=mesa.git tgsi: Enable returns from within loops Fixes the following piglit test (for softpipe): /spec/glsl-1.10/execution/fs-loop-return Signed-off-by: Lars Hamre Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index 1457c060033..aff35e6683b 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -5148,6 +5148,10 @@ exec_instruction( /* returning from main() */ mach->CondStackTop = 0; mach->LoopStackTop = 0; + mach->ContStackTop = 0; + mach->LoopLabelStackTop = 0; + mach->SwitchStackTop = 0; + mach->BreakStackTop = 0; *pc = -1; return FALSE; }