summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorLars Hamre <chemecse@gmail.com>2016-09-13 13:08:00 -0600
committerBrian Paul <brianp@vmware.com>2016-09-17 10:24:13 -0600
commitddd6116e32dd27ebdf4291c2a22922e8f38e7788 (patch)
treedf83a47c952ba6f94fd8a7f86d57020e213d4e00 /src/gallium/auxiliary
parent8a6391477efcede5639e31db2ff42abe37aaabd1 (diff)
downloadexternal_mesa3d-ddd6116e32dd27ebdf4291c2a22922e8f38e7788.zip
external_mesa3d-ddd6116e32dd27ebdf4291c2a22922e8f38e7788.tar.gz
external_mesa3d-ddd6116e32dd27ebdf4291c2a22922e8f38e7788.tar.bz2
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 <chemecse@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_exec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 1457c06..aff35e6 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;
}